502ca9c8be04ad37792e397226259149a500e26c
[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 _0xf52a=['path','rimraf','../../config/environment','./condition.attributes','exports','define','Condition','../../config/logger','bluebird','request-promise'];(function(_0x24ff5b,_0x5b41b5){var _0x2683b3=function(_0x274597){while(--_0x274597){_0x24ff5b['push'](_0x24ff5b['shift']());}};_0x2683b3(++_0x5b41b5);}(_0xf52a,0x18d));var _0xaf52=function(_0x4a404b,_0x66607d){_0x4a404b=_0x4a404b-0x0;var _0x38d35b=_0xf52a[_0x4a404b];return _0x38d35b;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xaf52('0x0'))('api');var moment=require('moment');var BPromise=require(_0xaf52('0x1'));var rp=require(_0xaf52('0x2'));var fs=require('fs');var path=require(_0xaf52('0x3'));var rimraf=require(_0xaf52('0x4'));var config=require(_0xaf52('0x5'));var attributes=require(_0xaf52('0x6'));module[_0xaf52('0x7')]=function(_0x189b02,_0x22f33d){return _0x189b02[_0xaf52('0x8')](_0xaf52('0x9'),attributes,{'tableName':'tools_conditions','paranoid':![],'indexes':[],'timestamps':!![]});};