Built motion from commit (unavailable).|2.5.24
[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 _0x2c38=['../../config/environment','exports','Condition','tools_conditions','util','../../config/logger','api','moment','request-promise'];(function(_0x1d5476,_0x2f8795){var _0x4ac71f=function(_0x4ee292){while(--_0x4ee292){_0x1d5476['push'](_0x1d5476['shift']());}};_0x4ac71f(++_0x2f8795);}(_0x2c38,0x67));var _0x82c3=function(_0x5c1c49,_0xd7027){_0x5c1c49=_0x5c1c49-0x0;var _0x399334=_0x2c38[_0x5c1c49];return _0x399334;};'use strict';var _=require('lodash');var util=require(_0x82c3('0x0'));var logger=require(_0x82c3('0x1'))(_0x82c3('0x2'));var moment=require(_0x82c3('0x3'));var BPromise=require('bluebird');var rp=require(_0x82c3('0x4'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x82c3('0x5'));var attributes=require('./condition.attributes');module[_0x82c3('0x6')]=function(_0x107bbd,_0x54598b){return _0x107bbd['define'](_0x82c3('0x7'),attributes,{'tableName':_0x82c3('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};