1a62cf1aeaaef8b5bce467c1b5501b5039c7d722
[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 _0x70f4=['../../config/logger','request-promise','path','rimraf','../../config/environment','define','tools_conditions','lodash','util'];(function(_0x467f47,_0x49565c){var _0x4a0868=function(_0x3b7c40){while(--_0x3b7c40){_0x467f47['push'](_0x467f47['shift']());}};_0x4a0868(++_0x49565c);}(_0x70f4,0x142));var _0x470f=function(_0x4b60ae,_0x4ea45c){_0x4b60ae=_0x4b60ae-0x0;var _0x11ddbe=_0x70f4[_0x4b60ae];return _0x11ddbe;};'use strict';var _=require(_0x470f('0x0'));var util=require(_0x470f('0x1'));var logger=require(_0x470f('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x470f('0x3'));var fs=require('fs');var path=require(_0x470f('0x4'));var rimraf=require(_0x470f('0x5'));var config=require(_0x470f('0x6'));var attributes=require('./condition.attributes');module['exports']=function(_0x4894a0,_0xa6152d){return _0x4894a0[_0x470f('0x7')]('Condition',attributes,{'tableName':_0x470f('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};