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 _0xbb86=['getDescriptions','create','put','delete','destroy','exports','multer','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','/:id/fields','/:id/descriptions'];(function(_0x3dd3fe,_0x4f3fcb){var _0x5ec1c3=function(_0x1669ee){while(--_0x1669ee){_0x3dd3fe['push'](_0x3dd3fe['shift']());}};_0x5ec1c3(++_0x4f3fcb);}(_0xbb86,0x65));var _0x6bb8=function(_0xee6366,_0xe36b0a){_0xee6366=_0xee6366-0x0;var _0xe4d7bc=_0xbb86[_0xee6366];return _0xe4d7bc;};'use strict';var multer=require(_0x6bb8('0x0'));var util=require('util');var path=require('path');var timeout=require(_0x6bb8('0x1'));var express=require(_0x6bb8('0x2'));var router=express[_0x6bb8('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x6bb8('0x4'));var interaction=require(_0x6bb8('0x5'));var config=require(_0x6bb8('0x6'));var controller=require('./intServicenowConfiguration.controller');router['get']('/',auth[_0x6bb8('0x7')](),controller['index']);router[_0x6bb8('0x8')](_0x6bb8('0x9'),auth[_0x6bb8('0x7')](),controller[_0x6bb8('0xa')]);router[_0x6bb8('0x8')](_0x6bb8('0xb'),auth[_0x6bb8('0x7')](),controller['getFields']);router[_0x6bb8('0x8')]('/:id/subjects',auth['isAuthenticated'](),controller['getSubjects']);router['get'](_0x6bb8('0xc'),auth[_0x6bb8('0x7')](),controller[_0x6bb8('0xd')]);router['post']('/',auth[_0x6bb8('0x7')](),controller[_0x6bb8('0xe')]);router[_0x6bb8('0xf')](_0x6bb8('0x9'),auth[_0x6bb8('0x7')](),controller['update']);router[_0x6bb8('0x10')](_0x6bb8('0x9'),auth['isAuthenticated'](),controller[_0x6bb8('0x11')]);module[_0x6bb8('0x12')]=router;