Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / condition / condition.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 _0xb8c4=['bluebird','request-promise','rimraf','./condition.attributes','exports','define','Condition','tools_conditions','lodash','util','../../config/logger','api','moment'];(function(_0x3727ae,_0x165f88){var _0x1c3f01=function(_0x5cd5a5){while(--_0x5cd5a5){_0x3727ae['push'](_0x3727ae['shift']());}};_0x1c3f01(++_0x165f88);}(_0xb8c4,0x18e));var _0x4b8c=function(_0x4ec3ab,_0x50a5de){_0x4ec3ab=_0x4ec3ab-0x0;var _0x229613=_0xb8c4[_0x4ec3ab];return _0x229613;};'use strict';var _=require(_0x4b8c('0x0'));var util=require(_0x4b8c('0x1'));var logger=require(_0x4b8c('0x2'))(_0x4b8c('0x3'));var moment=require(_0x4b8c('0x4'));var BPromise=require(_0x4b8c('0x5'));var rp=require(_0x4b8c('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x4b8c('0x7'));var config=require('../../config/environment');var attributes=require(_0x4b8c('0x8'));module[_0x4b8c('0x9')]=function(_0x4afbec,_0x4da29e){return _0x4afbec[_0x4b8c('0xa')](_0x4b8c('0xb'),attributes,{'tableName':_0x4b8c('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};