bbb35175a7df26970e93be5deacc17e8cf24cb50
[motion2.git] / server / api / team / team.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 _0x91c3=['path','rimraf','./team.attributes','exports','Team','lodash','util','moment','bluebird'];(function(_0x3cabb4,_0x11655a){var _0xb9f0ab=function(_0x929eae){while(--_0x929eae){_0x3cabb4['push'](_0x3cabb4['shift']());}};_0xb9f0ab(++_0x11655a);}(_0x91c3,0x1d9));var _0x391c=function(_0x1dac7a,_0x1828ce){_0x1dac7a=_0x1dac7a-0x0;var _0x4cb363=_0x91c3[_0x1dac7a];return _0x4cb363;};'use strict';var _=require(_0x391c('0x0'));var util=require(_0x391c('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0x391c('0x2'));var BPromise=require(_0x391c('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x391c('0x4'));var rimraf=require(_0x391c('0x5'));var config=require('../../config/environment');var attributes=require(_0x391c('0x6'));module[_0x391c('0x7')]=function(_0x1ea7ce,_0x507f99){return _0x1ea7ce['define'](_0x391c('0x8'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![]});};