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 _0x7382=['put','update','destroy','util','../../components/interaction/service','../../config/environment','./intDeskConfiguration.controller','get','isAuthenticated','/:id','/:id/fields','/:id/subjects','/:id/descriptions','/:id/tags','getTags','post','create','setTags'];(function(_0x17aaf6,_0x5b54ca){var _0x200a4e=function(_0x505212){while(--_0x505212){_0x17aaf6['push'](_0x17aaf6['shift']());}};_0x200a4e(++_0x5b54ca);}(_0x7382,0x111));var _0x2738=function(_0x33601d,_0x800e8c){_0x33601d=_0x33601d-0x0;var _0x4e7300=_0x7382[_0x33601d];return _0x4e7300;};'use strict';var multer=require('multer');var util=require(_0x2738('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x2738('0x1'));var config=require(_0x2738('0x2'));var controller=require(_0x2738('0x3'));router[_0x2738('0x4')]('/',auth[_0x2738('0x5')](),controller['index']);router[_0x2738('0x4')](_0x2738('0x6'),auth[_0x2738('0x5')](),controller['show']);router[_0x2738('0x4')](_0x2738('0x7'),auth[_0x2738('0x5')](),controller['getFields']);router[_0x2738('0x4')](_0x2738('0x8'),auth[_0x2738('0x5')](),controller['getSubjects']);router[_0x2738('0x4')](_0x2738('0x9'),auth[_0x2738('0x5')](),controller['getDescriptions']);router['get'](_0x2738('0xa'),auth[_0x2738('0x5')](),controller[_0x2738('0xb')]);router[_0x2738('0xc')]('/',auth[_0x2738('0x5')](),controller[_0x2738('0xd')]);router[_0x2738('0xc')](_0x2738('0xa'),auth[_0x2738('0x5')](),controller[_0x2738('0xe')]);router[_0x2738('0xf')]('/:id',auth[_0x2738('0x5')](),controller[_0x2738('0x10')]);router['delete'](_0x2738('0x6'),auth['isAuthenticated'](),controller[_0x2738('0x11')]);module['exports']=router;