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 _0x4af3=['describe','show','getMessages','/:id/download','download','post','create','/:id/messages','/:id/tags','mail','mailinteraction:addtags','addTags','/:id','tracked','update','delete','mailinteraction:destroy','removeTags','exports','util','path','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailInteraction.controller','get','isAuthenticated','index','/describe'];(function(_0x2cb6d3,_0xad38c5){var _0x276b6f=function(_0x1ecfb7){while(--_0x1ecfb7){_0x2cb6d3['push'](_0x2cb6d3['shift']());}};_0x276b6f(++_0xad38c5);}(_0x4af3,0x118));var _0x34af=function(_0x44b249,_0x5b4811){_0x44b249=_0x44b249-0x0;var _0x23b853=_0x4af3[_0x44b249];return _0x23b853;};'use strict';var multer=require('multer');var util=require(_0x34af('0x0'));var path=require(_0x34af('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x34af('0x2'));var interaction=require(_0x34af('0x3'));var config=require(_0x34af('0x4'));var controller=require(_0x34af('0x5'));router[_0x34af('0x6')]('/',auth[_0x34af('0x7')](),controller[_0x34af('0x8')]);router['get'](_0x34af('0x9'),auth[_0x34af('0x7')](),controller[_0x34af('0xa')]);router[_0x34af('0x6')]('/:id',auth[_0x34af('0x7')](),controller[_0x34af('0xb')]);router[_0x34af('0x6')]('/:id/messages',auth['isAuthenticated'](),controller[_0x34af('0xc')]);router[_0x34af('0x6')](_0x34af('0xd'),auth['isAuthenticated'](),controller[_0x34af('0xe')]);router[_0x34af('0xf')]('/',auth[_0x34af('0x7')](),controller[_0x34af('0x10')]);router[_0x34af('0xf')](_0x34af('0x11'),auth[_0x34af('0x7')](),controller['addMessage']);router[_0x34af('0xf')](_0x34af('0x12'),auth['isAuthenticated'](),interaction['tracked'](_0x34af('0x13'),_0x34af('0x14')),controller[_0x34af('0x15')]);router['put'](_0x34af('0x16'),auth[_0x34af('0x7')](),interaction[_0x34af('0x17')](_0x34af('0x13'),'mailinteraction:update'),controller[_0x34af('0x18')]);router[_0x34af('0x19')]('/:id',auth[_0x34af('0x7')](),interaction['tracked'](_0x34af('0x13'),_0x34af('0x1a')),controller['destroy']);router[_0x34af('0x19')](_0x34af('0x12'),auth[_0x34af('0x7')](),controller[_0x34af('0x1b')]);module[_0x34af('0x1c')]=router;