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