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