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 _0x067f=['isAuthenticated','index','/:id','create','put','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailServerOut.controller','get'];(function(_0x331b01,_0x2290b1){var _0x287f12=function(_0x165787){while(--_0x165787){_0x331b01['push'](_0x331b01['shift']());}};_0x287f12(++_0x2290b1);}(_0x067f,0x1dc));var _0xf067=function(_0x2371e3,_0x543449){_0x2371e3=_0x2371e3-0x0;var _0x14e44a=_0x067f[_0x2371e3];return _0x14e44a;};'use strict';var multer=require('multer');var util=require(_0xf067('0x0'));var path=require(_0xf067('0x1'));var timeout=require(_0xf067('0x2'));var express=require(_0xf067('0x3'));var router=express[_0xf067('0x4')]();var auth=require(_0xf067('0x5'));var interaction=require(_0xf067('0x6'));var config=require(_0xf067('0x7'));var controller=require(_0xf067('0x8'));router[_0xf067('0x9')]('/',auth[_0xf067('0xa')](),controller[_0xf067('0xb')]);router[_0xf067('0x9')](_0xf067('0xc'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xf067('0xd')]);router[_0xf067('0xe')](_0xf067('0xc'),auth[_0xf067('0xa')](),controller['update']);router[_0xf067('0xf')]('/:id',auth[_0xf067('0xa')](),controller[_0xf067('0x10')]);module[_0xf067('0x11')]=router;