Built motion from commit f7863d46.|2.5.41
[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 _0x61f7=['api','moment','bluebird','request-promise','path','rimraf','../../config/environment','./condition.attributes','exports','tools_conditions','util'];(function(_0x4054bd,_0x2c8c18){var _0xe1ab0a=function(_0x5e592b){while(--_0x5e592b){_0x4054bd['push'](_0x4054bd['shift']());}};_0xe1ab0a(++_0x2c8c18);}(_0x61f7,0x128));var _0x761f=function(_0x9dd7b3,_0x12f1a0){_0x9dd7b3=_0x9dd7b3-0x0;var _0x55f1a8=_0x61f7[_0x9dd7b3];return _0x55f1a8;};'use strict';var _=require('lodash');var util=require(_0x761f('0x0'));var logger=require('../../config/logger')(_0x761f('0x1'));var moment=require(_0x761f('0x2'));var BPromise=require(_0x761f('0x3'));var rp=require(_0x761f('0x4'));var fs=require('fs');var path=require(_0x761f('0x5'));var rimraf=require(_0x761f('0x6'));var config=require(_0x761f('0x7'));var attributes=require(_0x761f('0x8'));module[_0x761f('0x9')]=function(_0x8c6e66,_0x2ea6af){return _0x8c6e66['define']('Condition',attributes,{'tableName':_0x761f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};