972d5ead33281ea53d51eef9818a6ac6a24b12da
[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 _0xc89d=['bluebird','request-promise','rimraf','./team.attributes','Team','teams','util','api'];(function(_0x2b67f7,_0x4f748a){var _0x45d7ff=function(_0x3ccffe){while(--_0x3ccffe){_0x2b67f7['push'](_0x2b67f7['shift']());}};_0x45d7ff(++_0x4f748a);}(_0xc89d,0xfe));var _0xdc89=function(_0x531c46,_0x55fa63){_0x531c46=_0x531c46-0x0;var _0x3b4ec5=_0xc89d[_0x531c46];return _0x3b4ec5;};'use strict';var _=require('lodash');var util=require(_0xdc89('0x0'));var logger=require('../../config/logger')(_0xdc89('0x1'));var moment=require('moment');var BPromise=require(_0xdc89('0x2'));var rp=require(_0xdc89('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xdc89('0x4'));var config=require('../../config/environment');var attributes=require(_0xdc89('0x5'));module['exports']=function(_0x599564,_0x59bef2){return _0x599564['define'](_0xdc89('0x6'),attributes,{'tableName':_0xdc89('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};