cbee86efeca8dbfb0bc8c0ebb4c6286867594731
[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 _0x2814=['moment','bluebird','request-promise','path','rimraf','./condition.attributes','define','Condition','tools_conditions','util','../../config/logger','api'];(function(_0x282028,_0xe11169){var _0x4eb869=function(_0x16d829){while(--_0x16d829){_0x282028['push'](_0x282028['shift']());}};_0x4eb869(++_0xe11169);}(_0x2814,0x1c5));var _0x4281=function(_0x536229,_0x941827){_0x536229=_0x536229-0x0;var _0x17a78c=_0x2814[_0x536229];return _0x17a78c;};'use strict';var _=require('lodash');var util=require(_0x4281('0x0'));var logger=require(_0x4281('0x1'))(_0x4281('0x2'));var moment=require(_0x4281('0x3'));var BPromise=require(_0x4281('0x4'));var rp=require(_0x4281('0x5'));var fs=require('fs');var path=require(_0x4281('0x6'));var rimraf=require(_0x4281('0x7'));var config=require('../../config/environment');var attributes=require(_0x4281('0x8'));module['exports']=function(_0x121620,_0x5a3cb7){return _0x121620[_0x4281('0x9')](_0x4281('0xa'),attributes,{'tableName':_0x4281('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};