148e5544a305b9b94845ff6f1baeca84bc917ce6
[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 _0x1e35=['request-promise','path','../../config/environment','exports','define','Condition','tools_conditions','util','api','moment','bluebird'];(function(_0x123a8a,_0x26dcc4){var _0x38aceb=function(_0x1e3c8b){while(--_0x1e3c8b){_0x123a8a['push'](_0x123a8a['shift']());}};_0x38aceb(++_0x26dcc4);}(_0x1e35,0x17d));var _0x51e3=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x1e35[_0x3dd15e];return _0x231fd0;};'use strict';var _=require('lodash');var util=require(_0x51e3('0x0'));var logger=require('../../config/logger')(_0x51e3('0x1'));var moment=require(_0x51e3('0x2'));var BPromise=require(_0x51e3('0x3'));var rp=require(_0x51e3('0x4'));var fs=require('fs');var path=require(_0x51e3('0x5'));var rimraf=require('rimraf');var config=require(_0x51e3('0x6'));var attributes=require('./condition.attributes');module[_0x51e3('0x7')]=function(_0x476512,_0x1c2173){return _0x476512[_0x51e3('0x8')](_0x51e3('0x9'),attributes,{'tableName':_0x51e3('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};