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