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 _0xc6da=['/:id/descriptions','getDescriptions','create','put','update','destroy','util','path','Router','../../components/auth/service','../../config/environment','./intServicenowConfiguration.controller','index','/:id','isAuthenticated','get','getFields','/:id/subjects','getSubjects'];(function(_0x16fc1e,_0x590c8e){var _0x4e21a2=function(_0x4c9483){while(--_0x4c9483){_0x16fc1e['push'](_0x16fc1e['shift']());}};_0x4e21a2(++_0x590c8e);}(_0xc6da,0x182));var _0xac6d=function(_0x5c9307,_0x5b97e4){_0x5c9307=_0x5c9307-0x0;var _0x373e29=_0xc6da[_0x5c9307];return _0x373e29;};'use strict';var multer=require('multer');var util=require(_0xac6d('0x0'));var path=require(_0xac6d('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0xac6d('0x2')]();var auth=require(_0xac6d('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xac6d('0x4'));var controller=require(_0xac6d('0x5'));router['get']('/',auth['isAuthenticated'](),controller[_0xac6d('0x6')]);router['get'](_0xac6d('0x7'),auth[_0xac6d('0x8')](),controller['show']);router[_0xac6d('0x9')]('/:id/fields',auth[_0xac6d('0x8')](),controller[_0xac6d('0xa')]);router[_0xac6d('0x9')](_0xac6d('0xb'),auth[_0xac6d('0x8')](),controller[_0xac6d('0xc')]);router[_0xac6d('0x9')](_0xac6d('0xd'),auth['isAuthenticated'](),controller[_0xac6d('0xe')]);router['post']('/',auth[_0xac6d('0x8')](),controller[_0xac6d('0xf')]);router[_0xac6d('0x10')](_0xac6d('0x7'),auth[_0xac6d('0x8')](),controller[_0xac6d('0x11')]);router['delete'](_0xac6d('0x7'),auth['isAuthenticated'](),controller[_0xac6d('0x12')]);module['exports']=router;