fd689eb74a7bf722ec63ec2c31c583b0e3f012a9
[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 _0xa7b9=['api','bluebird','request-promise','rimraf','../../config/environment','./team.attributes','exports','define','Team','teams','util','../../config/logger'];(function(_0x55efa2,_0x30ba3c){var _0x269dee=function(_0x284aef){while(--_0x284aef){_0x55efa2['push'](_0x55efa2['shift']());}};_0x269dee(++_0x30ba3c);}(_0xa7b9,0x136));var _0x9a7b=function(_0x1399d6,_0x2c1661){_0x1399d6=_0x1399d6-0x0;var _0x4a9db4=_0xa7b9[_0x1399d6];return _0x4a9db4;};'use strict';var _=require('lodash');var util=require(_0x9a7b('0x0'));var logger=require(_0x9a7b('0x1'))(_0x9a7b('0x2'));var moment=require('moment');var BPromise=require(_0x9a7b('0x3'));var rp=require(_0x9a7b('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x9a7b('0x5'));var config=require(_0x9a7b('0x6'));var attributes=require(_0x9a7b('0x7'));module[_0x9a7b('0x8')]=function(_0x5f3827,_0x2cdee9){return _0x5f3827[_0x9a7b('0x9')](_0x9a7b('0xa'),attributes,{'tableName':_0x9a7b('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};