6df1ea8a1ecbfe013e16891ad3fc0753d93c71f8
[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 _0x7667=['path','rimraf','../../config/environment','./team.attributes','exports','Team','teams','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x57250b,_0x973efc){var _0x332782=function(_0x3d4da4){while(--_0x3d4da4){_0x57250b['push'](_0x57250b['shift']());}};_0x332782(++_0x973efc);}(_0x7667,0xbd));var _0x7766=function(_0x3eae70,_0x3eb193){_0x3eae70=_0x3eae70-0x0;var _0x3d71ba=_0x7667[_0x3eae70];return _0x3d71ba;};'use strict';var _=require(_0x7766('0x0'));var util=require('util');var logger=require(_0x7766('0x1'))(_0x7766('0x2'));var moment=require(_0x7766('0x3'));var BPromise=require(_0x7766('0x4'));var rp=require(_0x7766('0x5'));var fs=require('fs');var path=require(_0x7766('0x6'));var rimraf=require(_0x7766('0x7'));var config=require(_0x7766('0x8'));var attributes=require(_0x7766('0x9'));module[_0x7766('0xa')]=function(_0x224b2e,_0x5e4d16){return _0x224b2e['define'](_0x7766('0xb'),attributes,{'tableName':_0x7766('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};