Built motion from commit 25580385.|2.6.2
[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 _0xa955=['util','../../config/logger','moment','bluebird','rimraf','../../config/environment','./team.attributes','exports','define','Team'];(function(_0x46a00c,_0x57cd8a){var _0x247873=function(_0x4edc83){while(--_0x4edc83){_0x46a00c['push'](_0x46a00c['shift']());}};_0x247873(++_0x57cd8a);}(_0xa955,0x96));var _0x5a95=function(_0x3c5728,_0x452d1f){_0x3c5728=_0x3c5728-0x0;var _0x4fb03e=_0xa955[_0x3c5728];return _0x4fb03e;};'use strict';var _=require('lodash');var util=require(_0x5a95('0x0'));var logger=require(_0x5a95('0x1'))('api');var moment=require(_0x5a95('0x2'));var BPromise=require(_0x5a95('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x5a95('0x4'));var config=require(_0x5a95('0x5'));var attributes=require(_0x5a95('0x6'));module[_0x5a95('0x7')]=function(_0xe772cb,_0x36c646){return _0xe772cb[_0x5a95('0x8')](_0x5a95('0x9'),attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![]});};