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 _0xcd5c=['/:id','update','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../config/environment','./intServicenowConfiguration.controller','get','isAuthenticated','index','show','/:id/fields','getFields','/:id/subjects','getDescriptions','put'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xcd5c,0xca));var _0xccd5=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0xcd5c[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0xccd5('0x0'));var util=require(_0xccd5('0x1'));var path=require(_0xccd5('0x2'));var timeout=require(_0xccd5('0x3'));var express=require(_0xccd5('0x4'));var router=express[_0xccd5('0x5')]();var fs_extra=require(_0xccd5('0x6'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xccd5('0x7'));var controller=require(_0xccd5('0x8'));router[_0xccd5('0x9')]('/',auth[_0xccd5('0xa')](),controller[_0xccd5('0xb')]);router['get']('/:id',auth[_0xccd5('0xa')](),controller[_0xccd5('0xc')]);router[_0xccd5('0x9')](_0xccd5('0xd'),auth['isAuthenticated'](),controller[_0xccd5('0xe')]);router[_0xccd5('0x9')](_0xccd5('0xf'),auth[_0xccd5('0xa')](),controller['getSubjects']);router[_0xccd5('0x9')]('/:id/descriptions',auth[_0xccd5('0xa')](),controller[_0xccd5('0x10')]);router['post']('/',auth[_0xccd5('0xa')](),controller['create']);router[_0xccd5('0x11')](_0xccd5('0x12'),auth['isAuthenticated'](),controller[_0xccd5('0x13')]);router['delete'](_0xccd5('0x12'),auth['isAuthenticated'](),controller[_0xccd5('0x14')]);module[_0xccd5('0x15')]=router;