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