781fc9369dc64e4c6b73f775973f5bbad5270b7e
[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 _0xe6ed=['Condition','tools_conditions','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./condition.attributes','exports','define'];(function(_0x456c9d,_0xa6b604){var _0x38d5c=function(_0x5c0323){while(--_0x5c0323){_0x456c9d['push'](_0x456c9d['shift']());}};_0x38d5c(++_0xa6b604);}(_0xe6ed,0xf0));var _0xde6e=function(_0x3e5d1d,_0x42df87){_0x3e5d1d=_0x3e5d1d-0x0;var _0x9f5fea=_0xe6ed[_0x3e5d1d];return _0x9f5fea;};'use strict';var _=require(_0xde6e('0x0'));var util=require(_0xde6e('0x1'));var logger=require(_0xde6e('0x2'))(_0xde6e('0x3'));var moment=require(_0xde6e('0x4'));var BPromise=require(_0xde6e('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xde6e('0x6'));var rimraf=require(_0xde6e('0x7'));var config=require(_0xde6e('0x8'));var attributes=require(_0xde6e('0x9'));module[_0xde6e('0xa')]=function(_0x461054,_0x3fcb13){return _0x461054[_0xde6e('0xb')](_0xde6e('0xc'),attributes,{'tableName':_0xde6e('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};