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 _0xab05=['multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intDeskField.controller','index','get','/:id','show','post','isAuthenticated','put','update','destroy','exports'];(function(_0x2ebbe2,_0x524597){var _0x3332f8=function(_0x57392a){while(--_0x57392a){_0x2ebbe2['push'](_0x2ebbe2['shift']());}};_0x3332f8(++_0x524597);}(_0xab05,0x1b0));var _0x5ab0=function(_0x55e08b,_0x421620){_0x55e08b=_0x55e08b-0x0;var _0xd1a7ff=_0xab05[_0x55e08b];return _0xd1a7ff;};'use strict';var multer=require(_0x5ab0('0x0'));var util=require(_0x5ab0('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x5ab0('0x2'));var router=express[_0x5ab0('0x3')]();var auth=require(_0x5ab0('0x4'));var interaction=require(_0x5ab0('0x5'));var config=require(_0x5ab0('0x6'));var controller=require(_0x5ab0('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x5ab0('0x8')]);router[_0x5ab0('0x9')](_0x5ab0('0xa'),auth['isAuthenticated'](),controller[_0x5ab0('0xb')]);router[_0x5ab0('0xc')]('/',auth[_0x5ab0('0xd')](),controller['create']);router[_0x5ab0('0xe')](_0x5ab0('0xa'),auth[_0x5ab0('0xd')](),controller[_0x5ab0('0xf')]);router['delete']('/:id',auth[_0x5ab0('0xd')](),controller[_0x5ab0('0x10')]);module[_0x5ab0('0x11')]=router;