1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xf64b=['show','/:id/members','/:id/teams','getTeams','/:id/users','getAgents','create','post','addTeams','put','update','destroy','removeTeams','delete','removeAgents','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/describe','describe','/:id'];(function(_0x37f132,_0x56298f){var _0x321e9b=function(_0x4f7f4c){while(--_0x4f7f4c){_0x37f132['push'](_0x37f132['shift']());}};_0x321e9b(++_0x56298f);}(_0xf64b,0x1d1));var _0xbf64=function(_0x285824,_0x3da647){_0x285824=_0x285824-0x0;var _0x311d7e=_0xf64b[_0x285824];return _0x311d7e;};'use strict';var multer=require(_0xbf64('0x0'));var util=require(_0xbf64('0x1'));var path=require(_0xbf64('0x2'));var timeout=require(_0xbf64('0x3'));var express=require('express');var router=express[_0xbf64('0x4')]();var fs_extra=require(_0xbf64('0x5'));var auth=require(_0xbf64('0x6'));var interaction=require(_0xbf64('0x7'));var config=require(_0xbf64('0x8'));var controller=require('./mailQueue.controller');router[_0xbf64('0x9')]('/',auth[_0xbf64('0xa')](),controller[_0xbf64('0xb')]);router['get'](_0xbf64('0xc'),auth[_0xbf64('0xa')](),controller[_0xbf64('0xd')]);router[_0xbf64('0x9')](_0xbf64('0xe'),auth[_0xbf64('0xa')](),controller[_0xbf64('0xf')]);router['get'](_0xbf64('0x10'),auth[_0xbf64('0xa')](),controller['getMembers']);router[_0xbf64('0x9')](_0xbf64('0x11'),auth[_0xbf64('0xa')](),controller[_0xbf64('0x12')]);router[_0xbf64('0x9')](_0xbf64('0x13'),auth[_0xbf64('0xa')](),controller[_0xbf64('0x14')]);router['post']('/',auth[_0xbf64('0xa')](),controller[_0xbf64('0x15')]);router[_0xbf64('0x16')](_0xbf64('0x11'),auth[_0xbf64('0xa')](),controller[_0xbf64('0x17')]);router[_0xbf64('0x16')]('/:id/users',auth[_0xbf64('0xa')](),controller['addAgents']);router[_0xbf64('0x18')](_0xbf64('0xe'),auth[_0xbf64('0xa')](),controller[_0xbf64('0x19')]);router['delete'](_0xbf64('0xe'),auth[_0xbf64('0xa')](),controller[_0xbf64('0x1a')]);router['delete'](_0xbf64('0x11'),auth[_0xbf64('0xa')](),controller[_0xbf64('0x1b')]);router[_0xbf64('0x1c')]('/:id/users',auth['isAuthenticated'](),controller[_0xbf64('0x1d')]);module['exports']=router;