Built motion from commit ab870f9e.|2.5.44
[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 _0x7191=['../../config/environment','./team.attributes','exports','define','Team','teams','util','api','moment','bluebird','path','rimraf'];(function(_0x16b69a,_0x5b33f4){var _0x398084=function(_0x57c37e){while(--_0x57c37e){_0x16b69a['push'](_0x16b69a['shift']());}};_0x398084(++_0x5b33f4);}(_0x7191,0x1ce));var _0x1719=function(_0xefb84a,_0x217c3e){_0xefb84a=_0xefb84a-0x0;var _0x1ecff9=_0x7191[_0xefb84a];return _0x1ecff9;};'use strict';var _=require('lodash');var util=require(_0x1719('0x0'));var logger=require('../../config/logger')(_0x1719('0x1'));var moment=require(_0x1719('0x2'));var BPromise=require(_0x1719('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1719('0x4'));var rimraf=require(_0x1719('0x5'));var config=require(_0x1719('0x6'));var attributes=require(_0x1719('0x7'));module[_0x1719('0x8')]=function(_0x4fc8e3,_0x461c5f){return _0x4fc8e3[_0x1719('0x9')](_0x1719('0xa'),attributes,{'tableName':_0x1719('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};