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