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 _0xf058=['delete','multer','util','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','get','isAuthenticated','index','/:id','post','create','put','update'];(function(_0x23c2c3,_0x27ecc8){var _0x41e09f=function(_0x5e6873){while(--_0x5e6873){_0x23c2c3['push'](_0x23c2c3['shift']());}};_0x41e09f(++_0x27ecc8);}(_0xf058,0x1ef));var _0x8f05=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf058[_0x3dd15e];return _0x231fd0;};'use strict';var multer=require(_0x8f05('0x0'));var util=require(_0x8f05('0x1'));var path=require(_0x8f05('0x2'));var timeout=require('connect-timeout');var express=require(_0x8f05('0x3'));var router=express[_0x8f05('0x4')]();var fs_extra=require(_0x8f05('0x5'));var auth=require(_0x8f05('0x6'));var interaction=require(_0x8f05('0x7'));var config=require(_0x8f05('0x8'));var controller=require(_0x8f05('0x9'));router[_0x8f05('0xa')]('/',auth[_0x8f05('0xb')](),controller[_0x8f05('0xc')]);router['get'](_0x8f05('0xd'),auth[_0x8f05('0xb')](),controller['show']);router[_0x8f05('0xe')]('/',auth[_0x8f05('0xb')](),controller[_0x8f05('0xf')]);router[_0x8f05('0x10')](_0x8f05('0xd'),auth['isAuthenticated'](),controller[_0x8f05('0x11')]);router[_0x8f05('0x12')](_0x8f05('0xd'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;