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 _0x71a6=['multer','util','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intServicenowAccount.controller','get','isAuthenticated','index','/:id','show','/:id/configurations','getConfigurations','getFields','post','addConfiguration','put','delete','exports'];(function(_0xac327d,_0x27a843){var _0x4703be=function(_0x6bf9e1){while(--_0x6bf9e1){_0xac327d['push'](_0xac327d['shift']());}};_0x4703be(++_0x27a843);}(_0x71a6,0xa8));var _0x671a=function(_0x13639d,_0x3c996b){_0x13639d=_0x13639d-0x0;var _0x52ef14=_0x71a6[_0x13639d];return _0x52ef14;};'use strict';var multer=require(_0x671a('0x0'));var util=require(_0x671a('0x1'));var path=require(_0x671a('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x671a('0x3')]();var fs_extra=require(_0x671a('0x4'));var auth=require(_0x671a('0x5'));var interaction=require(_0x671a('0x6'));var config=require('../../config/environment');var controller=require(_0x671a('0x7'));router[_0x671a('0x8')]('/',auth[_0x671a('0x9')](),controller[_0x671a('0xa')]);router[_0x671a('0x8')](_0x671a('0xb'),auth['isAuthenticated'](),controller[_0x671a('0xc')]);router[_0x671a('0x8')](_0x671a('0xd'),auth[_0x671a('0x9')](),controller[_0x671a('0xe')]);router[_0x671a('0x8')]('/:id/fields',auth[_0x671a('0x9')](),controller[_0x671a('0xf')]);router[_0x671a('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0x671a('0x10')](_0x671a('0xd'),auth[_0x671a('0x9')](),controller[_0x671a('0x11')]);router[_0x671a('0x12')](_0x671a('0xb'),auth[_0x671a('0x9')](),controller['update']);router[_0x671a('0x13')](_0x671a('0xb'),auth['isAuthenticated'](),controller['destroy']);module[_0x671a('0x14')]=router;