Built motion from commit 3c2ce842.|2.6.31
[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 _0xd3fc=['exports','Condition','tools_conditions','../../config/logger','api','moment','bluebird','request-promise','path'];(function(_0x20d290,_0x40fc11){var _0x2bfa8f=function(_0x2498e0){while(--_0x2498e0){_0x20d290['push'](_0x20d290['shift']());}};_0x2bfa8f(++_0x40fc11);}(_0xd3fc,0x123));var _0xcd3f=function(_0x3a31c3,_0x184f64){_0x3a31c3=_0x3a31c3-0x0;var _0x3c1264=_0xd3fc[_0x3a31c3];return _0x3c1264;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xcd3f('0x0'))(_0xcd3f('0x1'));var moment=require(_0xcd3f('0x2'));var BPromise=require(_0xcd3f('0x3'));var rp=require(_0xcd3f('0x4'));var fs=require('fs');var path=require(_0xcd3f('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./condition.attributes');module[_0xcd3f('0x6')]=function(_0x170e09,_0x4c991c){return _0x170e09['define'](_0xcd3f('0x7'),attributes,{'tableName':_0xcd3f('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};