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