Built motion from commit b5413ace.|2.6.9
[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 _0x5be1=['define','Condition','tools_conditions','lodash','util','moment','bluebird','rimraf','../../config/environment','./condition.attributes'];(function(_0x545a3a,_0x3123aa){var _0x5a5493=function(_0x4e6bce){while(--_0x4e6bce){_0x545a3a['push'](_0x545a3a['shift']());}};_0x5a5493(++_0x3123aa);}(_0x5be1,0x175));var _0x15be=function(_0x50a1f6,_0x238fd8){_0x50a1f6=_0x50a1f6-0x0;var _0x84f8d4=_0x5be1[_0x50a1f6];return _0x84f8d4;};'use strict';var _=require(_0x15be('0x0'));var util=require(_0x15be('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x15be('0x2'));var BPromise=require(_0x15be('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x15be('0x4'));var config=require(_0x15be('0x5'));var attributes=require(_0x15be('0x6'));module['exports']=function(_0x41e4d3,_0x24c3d8){return _0x41e4d3[_0x15be('0x7')](_0x15be('0x8'),attributes,{'tableName':_0x15be('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};