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 _0x5e2e=['../../config/environment','get','index','/:id','isAuthenticated','show','delete','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service'];(function(_0x2b03c5,_0xa4bf5){var _0x16e7b7=function(_0x16499b){while(--_0x16499b){_0x2b03c5['push'](_0x2b03c5['shift']());}};_0x16e7b7(++_0xa4bf5);}(_0x5e2e,0x124));var _0xe5e2=function(_0x3afdcf,_0x4aaf08){_0x3afdcf=_0x3afdcf-0x0;var _0x3b1af0=_0x5e2e[_0x3afdcf];return _0x3b1af0;};'use strict';var multer=require(_0xe5e2('0x0'));var util=require(_0xe5e2('0x1'));var path=require(_0xe5e2('0x2'));var timeout=require(_0xe5e2('0x3'));var express=require(_0xe5e2('0x4'));var router=express[_0xe5e2('0x5')]();var fs_extra=require(_0xe5e2('0x6'));var auth=require('../../components/auth/service');var interaction=require(_0xe5e2('0x7'));var config=require(_0xe5e2('0x8'));var controller=require('./intServicenowField.controller');router[_0xe5e2('0x9')]('/',auth['isAuthenticated'](),controller[_0xe5e2('0xa')]);router[_0xe5e2('0x9')](_0xe5e2('0xb'),auth[_0xe5e2('0xc')](),controller[_0xe5e2('0xd')]);router['post']('/',auth[_0xe5e2('0xc')](),controller['create']);router['put'](_0xe5e2('0xb'),auth[_0xe5e2('0xc')](),controller['update']);router[_0xe5e2('0xe')](_0xe5e2('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;