5fafe04ee236e9776726a3571638968a792320ba
[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 _0x0e6d=['Team','teams','lodash','util','../../config/logger','bluebird','request-promise','rimraf','../../config/environment','./team.attributes','exports','define'];(function(_0x3bb19d,_0x4e2eca){var _0x4c8442=function(_0x4c9ff8){while(--_0x4c9ff8){_0x3bb19d['push'](_0x3bb19d['shift']());}};_0x4c8442(++_0x4e2eca);}(_0x0e6d,0x146));var _0xd0e6=function(_0x149980,_0xeb67c8){_0x149980=_0x149980-0x0;var _0x3aacce=_0x0e6d[_0x149980];return _0x3aacce;};'use strict';var _=require(_0xd0e6('0x0'));var util=require(_0xd0e6('0x1'));var logger=require(_0xd0e6('0x2'))('api');var moment=require('moment');var BPromise=require(_0xd0e6('0x3'));var rp=require(_0xd0e6('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0xd0e6('0x5'));var config=require(_0xd0e6('0x6'));var attributes=require(_0xd0e6('0x7'));module[_0xd0e6('0x8')]=function(_0x31c304,_0x3eba5a){return _0x31c304[_0xd0e6('0x9')](_0xd0e6('0xa'),attributes,{'tableName':_0xd0e6('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};