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