Built motion from commit da617fac.|2.6.6
[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 _0x9bc1=['define','Condition','tools_conditions','lodash','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports'];(function(_0x56cc28,_0x4a921e){var _0x1f5798=function(_0x45f7a5){while(--_0x45f7a5){_0x56cc28['push'](_0x56cc28['shift']());}};_0x1f5798(++_0x4a921e);}(_0x9bc1,0xf3));var _0x19bc=function(_0x1ded25,_0x26be3d){_0x1ded25=_0x1ded25-0x0;var _0x8ec99f=_0x9bc1[_0x1ded25];return _0x8ec99f;};'use strict';var _=require(_0x19bc('0x0'));var util=require('util');var logger=require(_0x19bc('0x1'))(_0x19bc('0x2'));var moment=require(_0x19bc('0x3'));var BPromise=require(_0x19bc('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x19bc('0x5'));var rimraf=require(_0x19bc('0x6'));var config=require(_0x19bc('0x7'));var attributes=require('./condition.attributes');module[_0x19bc('0x8')]=function(_0x28a25c,_0x232a00){return _0x28a25c[_0x19bc('0x9')](_0x19bc('0xa'),attributes,{'tableName':_0x19bc('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};