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 _0x0db0=['put','/:id','delete','mailinteraction:destroy','removeTags','exports','../../components/auth/service','get','isAuthenticated','/describe','describe','show','/:id/messages','/:id/download','post','create','/:id/tags','tracked','mail','mailinteraction:addtags'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0x0db0,0x6a));var _0x00db=function(_0x2943af,_0x72f03b){_0x2943af=_0x2943af-0x0;var _0x3861d2=_0x0db0[_0x2943af];return _0x3861d2;};'use strict';var express=require('express');var router=express['Router']();var auth=require(_0x00db('0x0'));var interaction=require('../../components/interaction/service');var controller=require('./mailInteraction.controller');router[_0x00db('0x1')]('/',auth[_0x00db('0x2')](),controller['index']);router[_0x00db('0x1')](_0x00db('0x3'),auth[_0x00db('0x2')](),controller[_0x00db('0x4')]);router[_0x00db('0x1')]('/:id',auth[_0x00db('0x2')](),controller[_0x00db('0x5')]);router['get'](_0x00db('0x6'),auth['isAuthenticated'](),controller['getMessages']);router[_0x00db('0x1')](_0x00db('0x7'),auth[_0x00db('0x2')](),controller['download']);router[_0x00db('0x8')]('/',auth[_0x00db('0x2')](),controller[_0x00db('0x9')]);router['post'](_0x00db('0x6'),auth['isAuthenticated'](),controller['addMessage']);router[_0x00db('0x8')](_0x00db('0xa'),auth['isAuthenticated'](),interaction[_0x00db('0xb')](_0x00db('0xc'),_0x00db('0xd')),controller['addTags']);router[_0x00db('0xe')](_0x00db('0xf'),auth[_0x00db('0x2')](),interaction['tracked'](_0x00db('0xc'),'mailinteraction:update'),controller['update']);router[_0x00db('0x10')](_0x00db('0xf'),auth['isAuthenticated'](),interaction['tracked']('mail',_0x00db('0x11')),controller['destroy']);router[_0x00db('0x10')](_0x00db('0xa'),auth[_0x00db('0x2')](),controller[_0x00db('0x12')]);module[_0x00db('0x13')]=router;