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