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 _0x3551=['destroy','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./intServicenowField.controller','get','isAuthenticated','show','post','create','put','/:id'];(function(_0x427b69,_0xbb0ddc){var _0x17a242=function(_0x43259a){while(--_0x43259a){_0x427b69['push'](_0x427b69['shift']());}};_0x17a242(++_0xbb0ddc);}(_0x3551,0x67));var _0x1355=function(_0x35007a,_0x58a0d4){_0x35007a=_0x35007a-0x0;var _0x574f68=_0x3551[_0x35007a];return _0x574f68;};'use strict';var multer=require('multer');var util=require(_0x1355('0x0'));var path=require(_0x1355('0x1'));var timeout=require(_0x1355('0x2'));var express=require(_0x1355('0x3'));var router=express[_0x1355('0x4')]();var fs_extra=require(_0x1355('0x5'));var auth=require(_0x1355('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x1355('0x7'));var controller=require(_0x1355('0x8'));router[_0x1355('0x9')]('/',auth[_0x1355('0xa')](),controller['index']);router[_0x1355('0x9')]('/:id',auth[_0x1355('0xa')](),controller[_0x1355('0xb')]);router[_0x1355('0xc')]('/',auth['isAuthenticated'](),controller[_0x1355('0xd')]);router[_0x1355('0xe')](_0x1355('0xf'),auth['isAuthenticated'](),controller['update']);router['delete'](_0x1355('0xf'),auth['isAuthenticated'](),controller[_0x1355('0x10')]);module['exports']=router;