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 _0x09a3=['../../components/interaction/service','get','isAuthenticated','index','/describe','describe','/:id','/:id/teams','getTeams','/:id/users','getAgents','create','post','addAgents','put','delete','destroy','removeTeams','removeAgents','exports','multer','util','path','connect-timeout','Router','fs-extra','../../components/auth/service'];(function(_0x471f7d,_0x59c86b){var _0x3088f1=function(_0x5e8ffa){while(--_0x5e8ffa){_0x471f7d['push'](_0x471f7d['shift']());}};_0x3088f1(++_0x59c86b);}(_0x09a3,0x107));var _0x309a=function(_0x553bbc,_0x1628dc){_0x553bbc=_0x553bbc-0x0;var _0x5a2627=_0x09a3[_0x553bbc];return _0x5a2627;};'use strict';var multer=require(_0x309a('0x0'));var util=require(_0x309a('0x1'));var path=require(_0x309a('0x2'));var timeout=require(_0x309a('0x3'));var express=require('express');var router=express[_0x309a('0x4')]();var fs_extra=require(_0x309a('0x5'));var auth=require(_0x309a('0x6'));var interaction=require(_0x309a('0x7'));var config=require('../../config/environment');var controller=require('./mailQueue.controller');router[_0x309a('0x8')]('/',auth[_0x309a('0x9')](),controller[_0x309a('0xa')]);router['get'](_0x309a('0xb'),auth['isAuthenticated'](),controller[_0x309a('0xc')]);router['get'](_0x309a('0xd'),auth[_0x309a('0x9')](),controller['show']);router[_0x309a('0x8')]('/:id/members',auth[_0x309a('0x9')](),controller['getMembers']);router[_0x309a('0x8')](_0x309a('0xe'),auth['isAuthenticated'](),controller[_0x309a('0xf')]);router[_0x309a('0x8')](_0x309a('0x10'),auth['isAuthenticated'](),controller[_0x309a('0x11')]);router['post']('/',auth[_0x309a('0x9')](),controller[_0x309a('0x12')]);router[_0x309a('0x13')](_0x309a('0xe'),auth['isAuthenticated'](),controller['addTeams']);router[_0x309a('0x13')]('/:id/users',auth['isAuthenticated'](),controller[_0x309a('0x14')]);router[_0x309a('0x15')](_0x309a('0xd'),auth['isAuthenticated'](),controller['update']);router[_0x309a('0x16')]('/:id',auth[_0x309a('0x9')](),controller[_0x309a('0x17')]);router[_0x309a('0x16')](_0x309a('0xe'),auth[_0x309a('0x9')](),controller[_0x309a('0x18')]);router[_0x309a('0x16')](_0x309a('0x10'),auth[_0x309a('0x9')](),controller[_0x309a('0x19')]);module[_0x309a('0x1a')]=router;