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 _0x9afd=['post','put','/:id','update','delete','destroy','exports','multer','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailSubstatus.controller','get','isAuthenticated','/describe','describe','show'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x9afd,0x11f));var _0xd9af=function(_0x2cef86,_0xbae0a6){_0x2cef86=_0x2cef86-0x0;var _0x46dfd6=_0x9afd[_0x2cef86];return _0x46dfd6;};'use strict';var multer=require(_0xd9af('0x0'));var util=require('util');var path=require(_0xd9af('0x1'));var timeout=require('connect-timeout');var express=require(_0xd9af('0x2'));var router=express['Router']();var fs_extra=require(_0xd9af('0x3'));var auth=require(_0xd9af('0x4'));var interaction=require(_0xd9af('0x5'));var config=require(_0xd9af('0x6'));var controller=require(_0xd9af('0x7'));router[_0xd9af('0x8')]('/',auth[_0xd9af('0x9')](),controller['index']);router['get'](_0xd9af('0xa'),auth['isAuthenticated'](),controller[_0xd9af('0xb')]);router[_0xd9af('0x8')]('/:id',auth[_0xd9af('0x9')](),controller[_0xd9af('0xc')]);router[_0xd9af('0xd')]('/',auth[_0xd9af('0x9')](),controller['create']);router[_0xd9af('0xe')](_0xd9af('0xf'),auth[_0xd9af('0x9')](),controller[_0xd9af('0x10')]);router[_0xd9af('0x11')]('/:id',auth[_0xd9af('0x9')](),controller[_0xd9af('0x12')]);module[_0xd9af('0x13')]=router;