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 _0xc526=['show','post','put','update','destroy','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','isAuthenticated','index','/:id'];(function(_0x79052a,_0x27e8cd){var _0x57ce69=function(_0x31f500){while(--_0x31f500){_0x79052a['push'](_0x79052a['shift']());}};_0x57ce69(++_0x27e8cd);}(_0xc526,0x6b));var _0x6c52=function(_0x575538,_0x250e7e){_0x575538=_0x575538-0x0;var _0x56df8b=_0xc526[_0x575538];return _0x56df8b;};'use strict';var multer=require(_0x6c52('0x0'));var util=require(_0x6c52('0x1'));var path=require(_0x6c52('0x2'));var timeout=require(_0x6c52('0x3'));var express=require('express');var router=express[_0x6c52('0x4')]();var auth=require(_0x6c52('0x5'));var interaction=require(_0x6c52('0x6'));var config=require(_0x6c52('0x7'));var controller=require(_0x6c52('0x8'));router['get']('/',auth[_0x6c52('0x9')](),controller[_0x6c52('0xa')]);router['get'](_0x6c52('0xb'),auth[_0x6c52('0x9')](),controller[_0x6c52('0xc')]);router[_0x6c52('0xd')]('/',auth[_0x6c52('0x9')](),controller['create']);router[_0x6c52('0xe')](_0x6c52('0xb'),auth[_0x6c52('0x9')](),controller[_0x6c52('0xf')]);router['delete']('/:id',auth[_0x6c52('0x9')](),controller[_0x6c52('0x10')]);module['exports']=router;