015d791b3beefc30f7f3ad32968451ed71769710
[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 _0xf738=['define','Condition','tools_conditions','../../config/logger','moment','bluebird','path','rimraf','./condition.attributes','exports'];(function(_0xafdfb1,_0x58b859){var _0x31bed=function(_0x2e8df5){while(--_0x2e8df5){_0xafdfb1['push'](_0xafdfb1['shift']());}};_0x31bed(++_0x58b859);}(_0xf738,0x1c5));var _0x8f73=function(_0x5c4f6b,_0x2cdfce){_0x5c4f6b=_0x5c4f6b-0x0;var _0x104c4e=_0xf738[_0x5c4f6b];return _0x104c4e;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x8f73('0x0'))('api');var moment=require(_0x8f73('0x1'));var BPromise=require(_0x8f73('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x8f73('0x3'));var rimraf=require(_0x8f73('0x4'));var config=require('../../config/environment');var attributes=require(_0x8f73('0x5'));module[_0x8f73('0x6')]=function(_0x24edb8,_0x3830a3){return _0x24edb8[_0x8f73('0x7')](_0x8f73('0x8'),attributes,{'tableName':_0x8f73('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};