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 _0x26a2=['show','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x302290,_0xe9c620){var _0x450d8e=function(_0xe0a144){while(--_0xe0a144){_0x302290['push'](_0x302290['shift']());}};_0x450d8e(++_0xe9c620);}(_0x26a2,0x91));var _0x226a=function(_0x38040e,_0x2c5db2){_0x38040e=_0x38040e-0x0;var _0x266775=_0x26a2[_0x38040e];return _0x266775;};'use strict';var multer=require('multer');var util=require(_0x226a('0x0'));var path=require(_0x226a('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x226a('0x2')]();var fs_extra=require(_0x226a('0x3'));var auth=require(_0x226a('0x4'));var interaction=require(_0x226a('0x5'));var config=require(_0x226a('0x6'));var controller=require('./intServicenowField.controller');router[_0x226a('0x7')]('/',auth[_0x226a('0x8')](),controller[_0x226a('0x9')]);router[_0x226a('0x7')](_0x226a('0xa'),auth['isAuthenticated'](),controller[_0x226a('0xb')]);router['post']('/',auth[_0x226a('0x8')](),controller['create']);router['put'](_0x226a('0xa'),auth[_0x226a('0x8')](),controller['update']);router['delete']('/:id',auth[_0x226a('0x8')](),controller['destroy']);module['exports']=router;