d203e8af8b81c81d926c3ae2d58aab59addfac1e
[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 _0xdbc8=['path','rimraf','../../config/environment','./team.attributes','exports','define','Team','teams','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0xf706c7,_0x6c9079){var _0x23894f=function(_0x40f21d){while(--_0x40f21d){_0xf706c7['push'](_0xf706c7['shift']());}};_0x23894f(++_0x6c9079);}(_0xdbc8,0xda));var _0x8dbc=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0xdbc8[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require('lodash');var util=require(_0x8dbc('0x0'));var logger=require(_0x8dbc('0x1'))(_0x8dbc('0x2'));var moment=require(_0x8dbc('0x3'));var BPromise=require(_0x8dbc('0x4'));var rp=require(_0x8dbc('0x5'));var fs=require('fs');var path=require(_0x8dbc('0x6'));var rimraf=require(_0x8dbc('0x7'));var config=require(_0x8dbc('0x8'));var attributes=require(_0x8dbc('0x9'));module[_0x8dbc('0xa')]=function(_0x575f02,_0x5dd412){return _0x575f02[_0x8dbc('0xb')](_0x8dbc('0xc'),attributes,{'tableName':_0x8dbc('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};