Built motion from commit (unavailable).|2.3.1
[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 _0xa617=['define','Condition','tools_conditions','lodash','util','../../config/logger','bluebird','request-promise','exports'];(function(_0x2aac90,_0x5acbcf){var _0x2d87e8=function(_0x221fda){while(--_0x221fda){_0x2aac90['push'](_0x2aac90['shift']());}};_0x2d87e8(++_0x5acbcf);}(_0xa617,0x12c));var _0x7a61=function(_0x43b190,_0x4a25ae){_0x43b190=_0x43b190-0x0;var _0x2e60d4=_0xa617[_0x43b190];return _0x2e60d4;};'use strict';var _=require(_0x7a61('0x0'));var util=require(_0x7a61('0x1'));var logger=require(_0x7a61('0x2'))('api');var moment=require('moment');var BPromise=require(_0x7a61('0x3'));var rp=require(_0x7a61('0x4'));var attributes=require('./condition.attributes');module[_0x7a61('0x5')]=function(_0x327d1f,_0x127472){return _0x327d1f[_0x7a61('0x6')](_0x7a61('0x7'),attributes,{'tableName':_0x7a61('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};