Built motion from commit 53172ac8.|2.6.30
[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 _0xe8e2=['exports','define','Condition','tools_conditions','util','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x3c504b,_0x437693){var _0x2e5354=function(_0x456709){while(--_0x456709){_0x3c504b['push'](_0x3c504b['shift']());}};_0x2e5354(++_0x437693);}(_0xe8e2,0x190));var _0x2e8e=function(_0x44bcb0,_0x235aa9){_0x44bcb0=_0x44bcb0-0x0;var _0xfaf881=_0xe8e2[_0x44bcb0];return _0xfaf881;};'use strict';var _=require('lodash');var util=require(_0x2e8e('0x0'));var logger=require('../../config/logger')(_0x2e8e('0x1'));var moment=require(_0x2e8e('0x2'));var BPromise=require(_0x2e8e('0x3'));var rp=require(_0x2e8e('0x4'));var fs=require('fs');var path=require(_0x2e8e('0x5'));var rimraf=require(_0x2e8e('0x6'));var config=require(_0x2e8e('0x7'));var attributes=require('./condition.attributes');module[_0x2e8e('0x8')]=function(_0x60c9be,_0x5a8f13){return _0x60c9be[_0x2e8e('0x9')](_0x2e8e('0xa'),attributes,{'tableName':_0x2e8e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};