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