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 _0xb3e1=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','index','/:id','post','create','update','delete','exports','multer'];(function(_0x53ccf2,_0x13cb67){var _0x5a2964=function(_0x3b0514){while(--_0x3b0514){_0x53ccf2['push'](_0x53ccf2['shift']());}};_0x5a2964(++_0x13cb67);}(_0xb3e1,0xd0));var _0x1b3e=function(_0x91d019,_0x5223c4){_0x91d019=_0x91d019-0x0;var _0x19de1f=_0xb3e1[_0x91d019];return _0x19de1f;};'use strict';var multer=require(_0x1b3e('0x0'));var util=require(_0x1b3e('0x1'));var path=require(_0x1b3e('0x2'));var timeout=require(_0x1b3e('0x3'));var express=require(_0x1b3e('0x4'));var router=express[_0x1b3e('0x5')]();var auth=require(_0x1b3e('0x6'));var interaction=require(_0x1b3e('0x7'));var config=require(_0x1b3e('0x8'));var controller=require(_0x1b3e('0x9'));router[_0x1b3e('0xa')]('/',auth[_0x1b3e('0xb')](),controller[_0x1b3e('0xc')]);router[_0x1b3e('0xa')](_0x1b3e('0xd'),auth['isAuthenticated'](),controller['show']);router[_0x1b3e('0xe')]('/',auth['isAuthenticated'](),controller[_0x1b3e('0xf')]);router['put'](_0x1b3e('0xd'),auth['isAuthenticated'](),controller[_0x1b3e('0x10')]);router[_0x1b3e('0x11')]('/:id',auth[_0x1b3e('0xb')](),controller['destroy']);module[_0x1b3e('0x12')]=router;