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 _0x0884=['put','update','delete','mailinteraction:destroy','express','Router','../../components/auth/service','../../components/interaction/service','get','index','/describe','describe','/:id','isAuthenticated','/:id/messages','getMessages','/:id/download','download','post','addMessage','/:id/tags','tracked','mail'];(function(_0x2f8698,_0x88c28f){var _0x1e915e=function(_0x135c90){while(--_0x135c90){_0x2f8698['push'](_0x2f8698['shift']());}};_0x1e915e(++_0x88c28f);}(_0x0884,0x18b));var _0x4088=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x0884[_0x3dd15e];return _0x231fd0;};'use strict';var express=require(_0x4088('0x0'));var router=express[_0x4088('0x1')]();var auth=require(_0x4088('0x2'));var interaction=require(_0x4088('0x3'));var controller=require('./mailInteraction.controller');router[_0x4088('0x4')]('/',auth['isAuthenticated'](),controller[_0x4088('0x5')]);router[_0x4088('0x4')](_0x4088('0x6'),auth['isAuthenticated'](),controller[_0x4088('0x7')]);router['get'](_0x4088('0x8'),auth[_0x4088('0x9')](),controller['show']);router[_0x4088('0x4')](_0x4088('0xa'),auth['isAuthenticated'](),controller[_0x4088('0xb')]);router['get'](_0x4088('0xc'),auth[_0x4088('0x9')](),controller[_0x4088('0xd')]);router[_0x4088('0xe')]('/',auth[_0x4088('0x9')](),controller['create']);router['post'](_0x4088('0xa'),auth[_0x4088('0x9')](),controller[_0x4088('0xf')]);router['post'](_0x4088('0x10'),auth[_0x4088('0x9')](),interaction[_0x4088('0x11')](_0x4088('0x12'),'mailinteraction:addtags'),controller['addTags']);router[_0x4088('0x13')]('/:id',auth[_0x4088('0x9')](),interaction[_0x4088('0x11')](_0x4088('0x12'),'mailinteraction:update'),controller[_0x4088('0x14')]);router[_0x4088('0x15')](_0x4088('0x8'),auth[_0x4088('0x9')](),interaction[_0x4088('0x11')](_0x4088('0x12'),_0x4088('0x16')),controller['destroy']);router[_0x4088('0x15')](_0x4088('0x10'),auth[_0x4088('0x9')](),controller['removeTags']);module['exports']=router;