Built motion from commit 9d0783e6.|2.6.13
[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 _0xdcc3=['./condition.attributes','exports','Condition','util','moment','bluebird','request-promise','../../config/environment'];(function(_0x59b49a,_0x5b0eb9){var _0x28c265=function(_0x5e9944){while(--_0x5e9944){_0x59b49a['push'](_0x59b49a['shift']());}};_0x28c265(++_0x5b0eb9);}(_0xdcc3,0x1eb));var _0x3dcc=function(_0x3ed950,_0xbcb504){_0x3ed950=_0x3ed950-0x0;var _0x3950f5=_0xdcc3[_0x3ed950];return _0x3950f5;};'use strict';var _=require('lodash');var util=require(_0x3dcc('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x3dcc('0x1'));var BPromise=require(_0x3dcc('0x2'));var rp=require(_0x3dcc('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x3dcc('0x4'));var attributes=require(_0x3dcc('0x5'));module[_0x3dcc('0x6')]=function(_0x4c34d1,_0x486c11){return _0x4c34d1['define'](_0x3dcc('0x7'),attributes,{'tableName':'tools_conditions','paranoid':![],'indexes':[],'timestamps':!![]});};