Built motion from commit (unavailable).|2.5.5
[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 _0xdca3=['request-promise','path','rimraf','./team.attributes','exports','define','Team','teams','lodash','util','../../config/logger','api','bluebird'];(function(_0x1e4c31,_0x1a3ec1){var _0x5c4ba2=function(_0x1deb47){while(--_0x1deb47){_0x1e4c31['push'](_0x1e4c31['shift']());}};_0x5c4ba2(++_0x1a3ec1);}(_0xdca3,0x1a8));var _0x3dca=function(_0x258cbf,_0x13377d){_0x258cbf=_0x258cbf-0x0;var _0x2a2b60=_0xdca3[_0x258cbf];return _0x2a2b60;};'use strict';var _=require(_0x3dca('0x0'));var util=require(_0x3dca('0x1'));var logger=require(_0x3dca('0x2'))(_0x3dca('0x3'));var moment=require('moment');var BPromise=require(_0x3dca('0x4'));var rp=require(_0x3dca('0x5'));var fs=require('fs');var path=require(_0x3dca('0x6'));var rimraf=require(_0x3dca('0x7'));var config=require('../../config/environment');var attributes=require(_0x3dca('0x8'));module[_0x3dca('0x9')]=function(_0x24f555,_0x2d8721){return _0x24f555[_0x3dca('0xa')](_0x3dca('0xb'),attributes,{'tableName':_0x3dca('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};