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 _0x251a=['express','../../config/environment','./mailSubstatus.controller','get','describe','/:id','isAuthenticated','create','put','delete','exports','multer','path'];(function(_0x20a558,_0x160e0e){var _0x53d3f7=function(_0x259bd8){while(--_0x259bd8){_0x20a558['push'](_0x20a558['shift']());}};_0x53d3f7(++_0x160e0e);}(_0x251a,0x80));var _0xa251=function(_0x4f5108,_0x46a54b){_0x4f5108=_0x4f5108-0x0;var _0x2d56ca=_0x251a[_0x4f5108];return _0x2d56ca;};'use strict';var multer=require(_0xa251('0x0'));var util=require('util');var path=require(_0xa251('0x1'));var timeout=require('connect-timeout');var express=require(_0xa251('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa251('0x3'));var controller=require(_0xa251('0x4'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xa251('0x5')]('/describe',auth['isAuthenticated'](),controller[_0xa251('0x6')]);router['get'](_0xa251('0x7'),auth[_0xa251('0x8')](),controller['show']);router['post']('/',auth[_0xa251('0x8')](),controller[_0xa251('0x9')]);router[_0xa251('0xa')](_0xa251('0x7'),auth[_0xa251('0x8')](),controller['update']);router[_0xa251('0xb')](_0xa251('0x7'),auth[_0xa251('0x8')](),controller['destroy']);module[_0xa251('0xc')]=router;