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 _0xaf9b=['getFields','post','create','addConfiguration','put','update','delete','destroy','exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','./intServicenowAccount.controller','get','isAuthenticated','/:id','/:id/configurations','getConfigurations','/:id/fields'];(function(_0x3a4c46,_0x159882){var _0x4a4d6d=function(_0x355bca){while(--_0x355bca){_0x3a4c46['push'](_0x3a4c46['shift']());}};_0x4a4d6d(++_0x159882);}(_0xaf9b,0x1d7));var _0xbaf9=function(_0x5ab50b,_0x2f81a9){_0x5ab50b=_0x5ab50b-0x0;var _0x18c477=_0xaf9b[_0x5ab50b];return _0x18c477;};'use strict';var multer=require(_0xbaf9('0x0'));var util=require('util');var path=require(_0xbaf9('0x1'));var timeout=require('connect-timeout');var express=require(_0xbaf9('0x2'));var router=express[_0xbaf9('0x3')]();var auth=require(_0xbaf9('0x4'));var interaction=require(_0xbaf9('0x5'));var config=require('../../config/environment');var controller=require(_0xbaf9('0x6'));router[_0xbaf9('0x7')]('/',auth[_0xbaf9('0x8')](),controller['index']);router[_0xbaf9('0x7')](_0xbaf9('0x9'),auth['isAuthenticated'](),controller['show']);router[_0xbaf9('0x7')](_0xbaf9('0xa'),auth[_0xbaf9('0x8')](),controller[_0xbaf9('0xb')]);router[_0xbaf9('0x7')](_0xbaf9('0xc'),auth[_0xbaf9('0x8')](),controller[_0xbaf9('0xd')]);router[_0xbaf9('0xe')]('/',auth[_0xbaf9('0x8')](),controller[_0xbaf9('0xf')]);router[_0xbaf9('0xe')]('/:id/configurations',auth[_0xbaf9('0x8')](),controller[_0xbaf9('0x10')]);router[_0xbaf9('0x11')](_0xbaf9('0x9'),auth['isAuthenticated'](),controller[_0xbaf9('0x12')]);router[_0xbaf9('0x13')]('/:id',auth[_0xbaf9('0x8')](),controller[_0xbaf9('0x14')]);module[_0xbaf9('0x15')]=router;