d2ae00860f46e39cfa42f102ffdc9208191735c6
[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 _0x28c7=['api','bluebird','request-promise','path','rimraf','../../config/environment','exports','lodash','util','../../config/logger'];(function(_0x38e389,_0x40939b){var _0xd0c395=function(_0x2f5179){while(--_0x2f5179){_0x38e389['push'](_0x38e389['shift']());}};_0xd0c395(++_0x40939b);}(_0x28c7,0x16f));var _0x728c=function(_0x43131d,_0x2db0c4){_0x43131d=_0x43131d-0x0;var _0x27918b=_0x28c7[_0x43131d];return _0x27918b;};'use strict';var _=require(_0x728c('0x0'));var util=require(_0x728c('0x1'));var logger=require(_0x728c('0x2'))(_0x728c('0x3'));var moment=require('moment');var BPromise=require(_0x728c('0x4'));var rp=require(_0x728c('0x5'));var fs=require('fs');var path=require(_0x728c('0x6'));var rimraf=require(_0x728c('0x7'));var config=require(_0x728c('0x8'));var attributes=require('./team.attributes');module[_0x728c('0x9')]=function(_0x11792e,_0x4b0d29){return _0x11792e['define']('Team',attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![]});};