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 _0x9f17=['/:id','delete','destroy','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./mailSubstatus.controller','get','index','isAuthenticated','describe','show','create'];(function(_0x3772a2,_0xd5e57d){var _0x3d1a63=function(_0x44eb28){while(--_0x44eb28){_0x3772a2['push'](_0x3772a2['shift']());}};_0x3d1a63(++_0xd5e57d);}(_0x9f17,0x1f0));var _0x79f1=function(_0x2de9a9,_0x1851ab){_0x2de9a9=_0x2de9a9-0x0;var _0x458894=_0x9f17[_0x2de9a9];return _0x458894;};'use strict';var multer=require(_0x79f1('0x0'));var util=require('util');var path=require(_0x79f1('0x1'));var timeout=require('connect-timeout');var express=require(_0x79f1('0x2'));var router=express[_0x79f1('0x3')]();var auth=require(_0x79f1('0x4'));var interaction=require(_0x79f1('0x5'));var config=require(_0x79f1('0x6'));var controller=require(_0x79f1('0x7'));router[_0x79f1('0x8')]('/',auth['isAuthenticated'](),controller[_0x79f1('0x9')]);router[_0x79f1('0x8')]('/describe',auth[_0x79f1('0xa')](),controller[_0x79f1('0xb')]);router[_0x79f1('0x8')]('/:id',auth[_0x79f1('0xa')](),controller[_0x79f1('0xc')]);router['post']('/',auth[_0x79f1('0xa')](),controller[_0x79f1('0xd')]);router['put'](_0x79f1('0xe'),auth[_0x79f1('0xa')](),controller['update']);router[_0x79f1('0xf')](_0x79f1('0xe'),auth[_0x79f1('0xa')](),controller[_0x79f1('0x10')]);module['exports']=router;