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 _0x099b=['describe','/:id','show','getMessages','/:id/download','post','create','/:id/messages','addMessage','/:id/tags','tracked','mail','addTags','put','mailinteraction:update','update','delete','mailinteraction:destroy','exports','express','Router','../../components/auth/service','../../components/interaction/service','./mailInteraction.controller','get','isAuthenticated','/describe'];(function(_0x2a9f68,_0xf21767){var _0x33da5f=function(_0x140625){while(--_0x140625){_0x2a9f68['push'](_0x2a9f68['shift']());}};_0x33da5f(++_0xf21767);}(_0x099b,0x121));var _0xb099=function(_0x45dedf,_0x3d9371){_0x45dedf=_0x45dedf-0x0;var _0x4fd35d=_0x099b[_0x45dedf];return _0x4fd35d;};'use strict';var express=require(_0xb099('0x0'));var router=express[_0xb099('0x1')]();var auth=require(_0xb099('0x2'));var interaction=require(_0xb099('0x3'));var controller=require(_0xb099('0x4'));router[_0xb099('0x5')]('/',auth[_0xb099('0x6')](),controller['index']);router[_0xb099('0x5')](_0xb099('0x7'),auth[_0xb099('0x6')](),controller[_0xb099('0x8')]);router[_0xb099('0x5')](_0xb099('0x9'),auth[_0xb099('0x6')](),controller[_0xb099('0xa')]);router[_0xb099('0x5')]('/:id/messages',auth[_0xb099('0x6')](),controller[_0xb099('0xb')]);router[_0xb099('0x5')](_0xb099('0xc'),auth[_0xb099('0x6')](),controller['download']);router[_0xb099('0xd')]('/',auth['isAuthenticated'](),controller[_0xb099('0xe')]);router[_0xb099('0xd')](_0xb099('0xf'),auth[_0xb099('0x6')](),controller[_0xb099('0x10')]);router[_0xb099('0xd')](_0xb099('0x11'),auth[_0xb099('0x6')](),interaction[_0xb099('0x12')](_0xb099('0x13'),'mailinteraction:addtags'),controller[_0xb099('0x14')]);router[_0xb099('0x15')](_0xb099('0x9'),auth[_0xb099('0x6')](),interaction[_0xb099('0x12')](_0xb099('0x13'),_0xb099('0x16')),controller[_0xb099('0x17')]);router[_0xb099('0x18')](_0xb099('0x9'),auth[_0xb099('0x6')](),interaction[_0xb099('0x12')](_0xb099('0x13'),_0xb099('0x19')),controller['destroy']);router['delete'](_0xb099('0x11'),auth[_0xb099('0x6')](),controller['removeTags']);module[_0xb099('0x1a')]=router;