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 _0x6220=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailServerOut.controller','get','isAuthenticated','/:id','post','create','put','update','destroy','exports','multer','util'];(function(_0x1f3f4f,_0x353b73){var _0x46b9ad=function(_0x49266d){while(--_0x49266d){_0x1f3f4f['push'](_0x1f3f4f['shift']());}};_0x46b9ad(++_0x353b73);}(_0x6220,0x167));var _0x0622=function(_0x5d6456,_0x58ecc7){_0x5d6456=_0x5d6456-0x0;var _0x4d66c1=_0x6220[_0x5d6456];return _0x4d66c1;};'use strict';var multer=require(_0x0622('0x0'));var util=require(_0x0622('0x1'));var path=require(_0x0622('0x2'));var timeout=require(_0x0622('0x3'));var express=require(_0x0622('0x4'));var router=express[_0x0622('0x5')]();var auth=require(_0x0622('0x6'));var interaction=require(_0x0622('0x7'));var config=require(_0x0622('0x8'));var controller=require(_0x0622('0x9'));router[_0x0622('0xa')]('/',auth[_0x0622('0xb')](),controller['index']);router[_0x0622('0xa')](_0x0622('0xc'),auth[_0x0622('0xb')](),controller['show']);router[_0x0622('0xd')]('/',auth['isAuthenticated'](),controller[_0x0622('0xe')]);router[_0x0622('0xf')](_0x0622('0xc'),auth['isAuthenticated'](),controller[_0x0622('0x10')]);router['delete'](_0x0622('0xc'),auth['isAuthenticated'](),controller[_0x0622('0x11')]);module[_0x0622('0x12')]=router;