Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / mailQueue / index.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 _0x36cb=['./mailQueue.controller','get','index','/describe','isAuthenticated','/:id','show','/:id/teams','getTeams','/:id/users','getAgents','post','create','addTeams','addAgents','put','update','delete','removeTeams','exports','multer','util','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x1109db,_0x5c6dc7){var _0x27d529=function(_0x558547){while(--_0x558547){_0x1109db['push'](_0x1109db['shift']());}};_0x27d529(++_0x5c6dc7);}(_0x36cb,0x122));var _0xb36c=function(_0x199572,_0x33e667){_0x199572=_0x199572-0x0;var _0x13cfa3=_0x36cb[_0x199572];return _0x13cfa3;};'use strict';var multer=require(_0xb36c('0x0'));var util=require(_0xb36c('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xb36c('0x2'));var router=express[_0xb36c('0x3')]();var fs_extra=require(_0xb36c('0x4'));var auth=require(_0xb36c('0x5'));var interaction=require(_0xb36c('0x6'));var config=require('../../config/environment');var controller=require(_0xb36c('0x7'));router[_0xb36c('0x8')]('/',auth['isAuthenticated'](),controller[_0xb36c('0x9')]);router[_0xb36c('0x8')](_0xb36c('0xa'),auth[_0xb36c('0xb')](),controller['describe']);router['get'](_0xb36c('0xc'),auth['isAuthenticated'](),controller[_0xb36c('0xd')]);router['get']('/:id/members',auth[_0xb36c('0xb')](),controller['getMembers']);router[_0xb36c('0x8')](_0xb36c('0xe'),auth['isAuthenticated'](),controller[_0xb36c('0xf')]);router[_0xb36c('0x8')](_0xb36c('0x10'),auth[_0xb36c('0xb')](),controller[_0xb36c('0x11')]);router[_0xb36c('0x12')]('/',auth[_0xb36c('0xb')](),controller[_0xb36c('0x13')]);router[_0xb36c('0x12')](_0xb36c('0xe'),auth['isAuthenticated'](),controller[_0xb36c('0x14')]);router[_0xb36c('0x12')](_0xb36c('0x10'),auth[_0xb36c('0xb')](),controller[_0xb36c('0x15')]);router[_0xb36c('0x16')](_0xb36c('0xc'),auth['isAuthenticated'](),controller[_0xb36c('0x17')]);router[_0xb36c('0x18')](_0xb36c('0xc'),auth[_0xb36c('0xb')](),controller['destroy']);router[_0xb36c('0x18')]('/:id/teams',auth['isAuthenticated'](),controller[_0xb36c('0x19')]);router[_0xb36c('0x18')](_0xb36c('0x10'),auth[_0xb36c('0xb')](),controller['removeAgents']);module[_0xb36c('0x1a')]=router;