b8e6d840a9a0615355fe07611ce2fa7ab5dd0333
[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 _0xbd69=['util','../../config/logger','api','moment','bluebird','rimraf','../../config/environment','define','tools_conditions','lodash'];(function(_0xc6be3a,_0x540e05){var _0x56a310=function(_0x50a144){while(--_0x50a144){_0xc6be3a['push'](_0xc6be3a['shift']());}};_0x56a310(++_0x540e05);}(_0xbd69,0x185));var _0x9bd6=function(_0x573e70,_0x49998f){_0x573e70=_0x573e70-0x0;var _0x26f21a=_0xbd69[_0x573e70];return _0x26f21a;};'use strict';var _=require(_0x9bd6('0x0'));var util=require(_0x9bd6('0x1'));var logger=require(_0x9bd6('0x2'))(_0x9bd6('0x3'));var moment=require(_0x9bd6('0x4'));var BPromise=require(_0x9bd6('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x9bd6('0x6'));var config=require(_0x9bd6('0x7'));var attributes=require('./condition.attributes');module['exports']=function(_0x408815,_0x7557f){return _0x408815[_0x9bd6('0x8')]('Condition',attributes,{'tableName':_0x9bd6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};