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 _0x22b4=['/:id','getFields','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','/:id/tags','getTags','post','setTags','put','update','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','get','isAuthenticated','index'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x22b4,0x8b));var _0x422b=function(_0x411017,_0x4a8117){_0x411017=_0x411017-0x0;var _0x2adeea=_0x22b4[_0x411017];return _0x2adeea;};'use strict';var multer=require(_0x422b('0x0'));var util=require(_0x422b('0x1'));var path=require(_0x422b('0x2'));var timeout=require(_0x422b('0x3'));var express=require(_0x422b('0x4'));var router=express[_0x422b('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x422b('0x6'));var config=require(_0x422b('0x7'));var controller=require('./intDeskConfiguration.controller');router[_0x422b('0x8')]('/',auth[_0x422b('0x9')](),controller[_0x422b('0xa')]);router[_0x422b('0x8')](_0x422b('0xb'),auth[_0x422b('0x9')](),controller['show']);router[_0x422b('0x8')]('/:id/fields',auth[_0x422b('0x9')](),controller[_0x422b('0xc')]);router[_0x422b('0x8')](_0x422b('0xd'),auth[_0x422b('0x9')](),controller[_0x422b('0xe')]);router['get'](_0x422b('0xf'),auth[_0x422b('0x9')](),controller[_0x422b('0x10')]);router[_0x422b('0x8')](_0x422b('0x11'),auth[_0x422b('0x9')](),controller[_0x422b('0x12')]);router[_0x422b('0x13')]('/',auth['isAuthenticated'](),controller['create']);router[_0x422b('0x13')](_0x422b('0x11'),auth[_0x422b('0x9')](),controller[_0x422b('0x14')]);router[_0x422b('0x15')](_0x422b('0xb'),auth[_0x422b('0x9')](),controller[_0x422b('0x16')]);router['delete'](_0x422b('0xb'),auth['isAuthenticated'](),controller[_0x422b('0x17')]);module[_0x422b('0x18')]=router;