b5cc9b4013c728904232462852d3f8279b5be25b
[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 _0x9f3b=['exports','define','Team','teams','lodash','util','../../config/logger','moment','bluebird','request-promise','rimraf','../../config/environment','./team.attributes'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x9f3b,0xe1));var _0xb9f3=function(_0x3a13cf,_0x478c62){_0x3a13cf=_0x3a13cf-0x0;var _0x4817c=_0x9f3b[_0x3a13cf];return _0x4817c;};'use strict';var _=require(_0xb9f3('0x0'));var util=require(_0xb9f3('0x1'));var logger=require(_0xb9f3('0x2'))('api');var moment=require(_0xb9f3('0x3'));var BPromise=require(_0xb9f3('0x4'));var rp=require(_0xb9f3('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xb9f3('0x6'));var config=require(_0xb9f3('0x7'));var attributes=require(_0xb9f3('0x8'));module[_0xb9f3('0x9')]=function(_0x32a6f7,_0x277bc1){return _0x32a6f7[_0xb9f3('0xa')](_0xb9f3('0xb'),attributes,{'tableName':_0xb9f3('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};