8528ce97d9ab1adace7905970db36653db7cc7bb
[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 _0x2c6f=['../../config/environment','exports','Condition','tools_conditions','../../config/logger','moment','bluebird','path','rimraf'];(function(_0x381f43,_0x56bf49){var _0x50121b=function(_0x11f8c4){while(--_0x11f8c4){_0x381f43['push'](_0x381f43['shift']());}};_0x50121b(++_0x56bf49);}(_0x2c6f,0x13f));var _0xf2c6=function(_0x3cf973,_0x2dcf72){_0x3cf973=_0x3cf973-0x0;var _0x46e25a=_0x2c6f[_0x3cf973];return _0x46e25a;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xf2c6('0x0'))('api');var moment=require(_0xf2c6('0x1'));var BPromise=require(_0xf2c6('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf2c6('0x3'));var rimraf=require(_0xf2c6('0x4'));var config=require(_0xf2c6('0x5'));var attributes=require('./condition.attributes');module[_0xf2c6('0x6')]=function(_0x413cd9,_0x4f0231){return _0x413cd9['define'](_0xf2c6('0x7'),attributes,{'tableName':_0xf2c6('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};