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