Built motion from commit (unavailable).|2.4.19
[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 _0x4f52=['./trigger.attributes','Trigger','tools_triggers','lodash','api','moment','request-promise','rimraf','../../config/environment'];(function(_0x5012fb,_0x1c4130){var _0x48f9d5=function(_0x4cac3c){while(--_0x4cac3c){_0x5012fb['push'](_0x5012fb['shift']());}};_0x48f9d5(++_0x1c4130);}(_0x4f52,0x111));var _0x24f5=function(_0x89a025,_0xb4a6f5){_0x89a025=_0x89a025-0x0;var _0x3d43db=_0x4f52[_0x89a025];return _0x3d43db;};'use strict';var _=require(_0x24f5('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x24f5('0x1'));var moment=require(_0x24f5('0x2'));var BPromise=require('bluebird');var rp=require(_0x24f5('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0x24f5('0x4'));var config=require(_0x24f5('0x5'));var attributes=require(_0x24f5('0x6'));module['exports']=function(_0x57cef1,_0xe15de0){return _0x57cef1['define'](_0x24f5('0x7'),attributes,{'tableName':_0x24f5('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};