Built motion from commit d9028345.|2.5.43
[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 _0x93ed=['define','lodash','util','request-promise','path','../../config/environment','./team.attributes','exports'];(function(_0x35f04d,_0x124794){var _0x38e62d=function(_0x3d696c){while(--_0x3d696c){_0x35f04d['push'](_0x35f04d['shift']());}};_0x38e62d(++_0x124794);}(_0x93ed,0x1c1));var _0xd93e=function(_0x5e89b0,_0x21eb6f){_0x5e89b0=_0x5e89b0-0x0;var _0x13b98a=_0x93ed[_0x5e89b0];return _0x13b98a;};'use strict';var _=require(_0xd93e('0x0'));var util=require(_0xd93e('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xd93e('0x2'));var fs=require('fs');var path=require(_0xd93e('0x3'));var rimraf=require('rimraf');var config=require(_0xd93e('0x4'));var attributes=require(_0xd93e('0x5'));module[_0xd93e('0x6')]=function(_0x31dd31,_0x546b65){return _0x31dd31[_0xd93e('0x7')]('Team',attributes,{'tableName':'teams','paranoid':![],'indexes':[],'timestamps':!![]});};