Built motion from commit c116dc8b.|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 _0x93cb=['tools_conditions','util','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment','Condition'];(function(_0x3b9d5f,_0x2e9039){var _0x39924e=function(_0x5752ee){while(--_0x5752ee){_0x3b9d5f['push'](_0x3b9d5f['shift']());}};_0x39924e(++_0x2e9039);}(_0x93cb,0x1b9));var _0xb93c=function(_0x164eca,_0x555e28){_0x164eca=_0x164eca-0x0;var _0x2ce562=_0x93cb[_0x164eca];return _0x2ce562;};'use strict';var _=require('lodash');var util=require(_0xb93c('0x0'));var logger=require(_0xb93c('0x1'))(_0xb93c('0x2'));var moment=require(_0xb93c('0x3'));var BPromise=require(_0xb93c('0x4'));var rp=require(_0xb93c('0x5'));var fs=require('fs');var path=require(_0xb93c('0x6'));var rimraf=require(_0xb93c('0x7'));var config=require(_0xb93c('0x8'));var attributes=require('./condition.attributes');module['exports']=function(_0x20e072,_0x3f44e4){return _0x20e072['define'](_0xb93c('0x9'),attributes,{'tableName':_0xb93c('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};