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 _0xa5f4=['connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailSubstatus.controller','isAuthenticated','index','get','/describe','describe','post','put','/:id','update','delete','destroy','multer','path'];(function(_0x31de3c,_0x55a229){var _0x58e00d=function(_0x2b4a12){while(--_0x2b4a12){_0x31de3c['push'](_0x31de3c['shift']());}};_0x58e00d(++_0x55a229);}(_0xa5f4,0x1f2));var _0x4a5f=function(_0x1534a7,_0x28dc30){_0x1534a7=_0x1534a7-0x0;var _0x4735ce=_0xa5f4[_0x1534a7];return _0x4735ce;};'use strict';var multer=require(_0x4a5f('0x0'));var util=require('util');var path=require(_0x4a5f('0x1'));var timeout=require(_0x4a5f('0x2'));var express=require(_0x4a5f('0x3'));var router=express[_0x4a5f('0x4')]();var auth=require(_0x4a5f('0x5'));var interaction=require(_0x4a5f('0x6'));var config=require(_0x4a5f('0x7'));var controller=require(_0x4a5f('0x8'));router['get']('/',auth[_0x4a5f('0x9')](),controller[_0x4a5f('0xa')]);router[_0x4a5f('0xb')](_0x4a5f('0xc'),auth[_0x4a5f('0x9')](),controller[_0x4a5f('0xd')]);router['get']('/:id',auth[_0x4a5f('0x9')](),controller['show']);router[_0x4a5f('0xe')]('/',auth[_0x4a5f('0x9')](),controller['create']);router[_0x4a5f('0xf')](_0x4a5f('0x10'),auth[_0x4a5f('0x9')](),controller[_0x4a5f('0x11')]);router[_0x4a5f('0x12')](_0x4a5f('0x10'),auth[_0x4a5f('0x9')](),controller[_0x4a5f('0x13')]);module['exports']=router;