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 _0xa082=['post','update','delete','destroy','exports','util','connect-timeout','express','../../config/environment','get','isAuthenticated','/describe','describe','/:id','show'];(function(_0x1acbc6,_0x10598d){var _0x48738f=function(_0x1bb364){while(--_0x1bb364){_0x1acbc6['push'](_0x1acbc6['shift']());}};_0x48738f(++_0x10598d);}(_0xa082,0x18b));var _0x2a08=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0xa082[_0x167cc1];return _0x10bc4b;};'use strict';var multer=require('multer');var util=require(_0x2a08('0x0'));var path=require('path');var timeout=require(_0x2a08('0x1'));var express=require(_0x2a08('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x2a08('0x3'));var controller=require('./mailSubstatus.controller');router[_0x2a08('0x4')]('/',auth[_0x2a08('0x5')](),controller['index']);router[_0x2a08('0x4')](_0x2a08('0x6'),auth[_0x2a08('0x5')](),controller[_0x2a08('0x7')]);router[_0x2a08('0x4')](_0x2a08('0x8'),auth[_0x2a08('0x5')](),controller[_0x2a08('0x9')]);router[_0x2a08('0xa')]('/',auth[_0x2a08('0x5')](),controller['create']);router['put']('/:id',auth[_0x2a08('0x5')](),controller[_0x2a08('0xb')]);router[_0x2a08('0xc')](_0x2a08('0x8'),auth['isAuthenticated'](),controller[_0x2a08('0xd')]);module[_0x2a08('0xe')]=router;