49cffa7d251f3a7d3d4022cc79cc9e820bac2668
[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 _0x3e42=['util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','Team','teams','lodash'];(function(_0x460b9c,_0xfdf090){var _0xd6eba1=function(_0xd7e9ae){while(--_0xd7e9ae){_0x460b9c['push'](_0x460b9c['shift']());}};_0xd6eba1(++_0xfdf090);}(_0x3e42,0x144));var _0x23e4=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3e42[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x23e4('0x0'));var util=require(_0x23e4('0x1'));var logger=require(_0x23e4('0x2'))(_0x23e4('0x3'));var moment=require(_0x23e4('0x4'));var BPromise=require('bluebird');var rp=require(_0x23e4('0x5'));var fs=require('fs');var path=require(_0x23e4('0x6'));var rimraf=require(_0x23e4('0x7'));var config=require(_0x23e4('0x8'));var attributes=require('./team.attributes');module[_0x23e4('0x9')]=function(_0x3054da,_0x53f9dd){return _0x3054da[_0x23e4('0xa')](_0x23e4('0xb'),attributes,{'tableName':_0x23e4('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};