Built motion from commit (unavailable).|2.5.18
[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 _0xd509=['../../config/logger','api','moment','bluebird','../../config/environment','./team.attributes','exports','Team','teams','lodash'];(function(_0x82129b,_0x484ae9){var _0x2ae5dc=function(_0x299e34){while(--_0x299e34){_0x82129b['push'](_0x82129b['shift']());}};_0x2ae5dc(++_0x484ae9);}(_0xd509,0x18f));var _0x9d50=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xd509[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x9d50('0x0'));var util=require('util');var logger=require(_0x9d50('0x1'))(_0x9d50('0x2'));var moment=require(_0x9d50('0x3'));var BPromise=require(_0x9d50('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x9d50('0x5'));var attributes=require(_0x9d50('0x6'));module[_0x9d50('0x7')]=function(_0x562821,_0x3b3dbf){return _0x562821['define'](_0x9d50('0x8'),attributes,{'tableName':_0x9d50('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};