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 _0xfaab=['path','connect-timeout','../../components/interaction/service','../../config/environment','./intDeskField.controller','index','get','/:id','isAuthenticated','show','update','delete','destroy','exports','multer'];(function(_0x7aeacc,_0x6663d){var _0x28edb8=function(_0x56e971){while(--_0x56e971){_0x7aeacc['push'](_0x7aeacc['shift']());}};_0x28edb8(++_0x6663d);}(_0xfaab,0xe0));var _0xbfaa=function(_0x347a4b,_0x5e492f){_0x347a4b=_0x347a4b-0x0;var _0x4273a3=_0xfaab[_0x347a4b];return _0x4273a3;};'use strict';var multer=require(_0xbfaa('0x0'));var util=require('util');var path=require(_0xbfaa('0x1'));var timeout=require(_0xbfaa('0x2'));var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xbfaa('0x3'));var config=require(_0xbfaa('0x4'));var controller=require(_0xbfaa('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0xbfaa('0x6')]);router[_0xbfaa('0x7')](_0xbfaa('0x8'),auth[_0xbfaa('0x9')](),controller[_0xbfaa('0xa')]);router['post']('/',auth[_0xbfaa('0x9')](),controller['create']);router['put'](_0xbfaa('0x8'),auth[_0xbfaa('0x9')](),controller[_0xbfaa('0xb')]);router[_0xbfaa('0xc')](_0xbfaa('0x8'),auth[_0xbfaa('0x9')](),controller[_0xbfaa('0xd')]);module[_0xbfaa('0xe')]=router;