Built motion from commit 87cd5f02.|2.5.48
[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 _0x2344=['lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','Team','teams'];(function(_0x38ff0f,_0x58fc59){var _0x597aa2=function(_0x4ccce6){while(--_0x4ccce6){_0x38ff0f['push'](_0x38ff0f['shift']());}};_0x597aa2(++_0x58fc59);}(_0x2344,0xe7));var _0x4234=function(_0x5e6af6,_0x1fcd48){_0x5e6af6=_0x5e6af6-0x0;var _0x321685=_0x2344[_0x5e6af6];return _0x321685;};'use strict';var _=require(_0x4234('0x0'));var util=require(_0x4234('0x1'));var logger=require(_0x4234('0x2'))(_0x4234('0x3'));var moment=require(_0x4234('0x4'));var BPromise=require(_0x4234('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4234('0x6'));var rimraf=require(_0x4234('0x7'));var config=require(_0x4234('0x8'));var attributes=require('./team.attributes');module['exports']=function(_0x35d8f2,_0x543ef0){return _0x35d8f2['define'](_0x4234('0x9'),attributes,{'tableName':_0x4234('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};