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 _0xa5d2=['index','get','show','post','create','put','/:id','destroy','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intServicenowField.controller','isAuthenticated'];(function(_0x1d1567,_0x4b866f){var _0x1042ca=function(_0xb74306){while(--_0xb74306){_0x1d1567['push'](_0x1d1567['shift']());}};_0x1042ca(++_0x4b866f);}(_0xa5d2,0x128));var _0x2a5d=function(_0x220bf1,_0x1f4548){_0x220bf1=_0x220bf1-0x0;var _0x18e20c=_0xa5d2[_0x220bf1];return _0x18e20c;};'use strict';var multer=require(_0x2a5d('0x0'));var util=require(_0x2a5d('0x1'));var path=require(_0x2a5d('0x2'));var timeout=require('connect-timeout');var express=require(_0x2a5d('0x3'));var router=express[_0x2a5d('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x2a5d('0x5'));var interaction=require(_0x2a5d('0x6'));var config=require(_0x2a5d('0x7'));var controller=require(_0x2a5d('0x8'));router['get']('/',auth[_0x2a5d('0x9')](),controller[_0x2a5d('0xa')]);router[_0x2a5d('0xb')]('/:id',auth[_0x2a5d('0x9')](),controller[_0x2a5d('0xc')]);router[_0x2a5d('0xd')]('/',auth[_0x2a5d('0x9')](),controller[_0x2a5d('0xe')]);router[_0x2a5d('0xf')](_0x2a5d('0x10'),auth[_0x2a5d('0x9')](),controller['update']);router['delete'](_0x2a5d('0x10'),auth[_0x2a5d('0x9')](),controller[_0x2a5d('0x11')]);module['exports']=router;