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 _0x011a=['/:id','update','destroy','exports','multer','util','express','../../components/auth/service','../../config/environment','get','isAuthenticated','index','show','/:id/configurations','getConfigurations','/:id/fields','post','create','put'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x011a,0x16d));var _0xa011=function(_0x177c0f,_0x324360){_0x177c0f=_0x177c0f-0x0;var _0x1f4d28=_0x011a[_0x177c0f];return _0x1f4d28;};'use strict';var multer=require(_0xa011('0x0'));var util=require(_0xa011('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xa011('0x2'));var router=express['Router']();var auth=require(_0xa011('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0xa011('0x4'));var controller=require('./intServicenowAccount.controller');router[_0xa011('0x5')]('/',auth[_0xa011('0x6')](),controller[_0xa011('0x7')]);router['get']('/:id',auth[_0xa011('0x6')](),controller[_0xa011('0x8')]);router[_0xa011('0x5')](_0xa011('0x9'),auth[_0xa011('0x6')](),controller[_0xa011('0xa')]);router[_0xa011('0x5')](_0xa011('0xb'),auth[_0xa011('0x6')](),controller['getFields']);router[_0xa011('0xc')]('/',auth['isAuthenticated'](),controller[_0xa011('0xd')]);router[_0xa011('0xc')](_0xa011('0x9'),auth[_0xa011('0x6')](),controller['addConfiguration']);router[_0xa011('0xe')](_0xa011('0xf'),auth['isAuthenticated'](),controller[_0xa011('0x10')]);router['delete'](_0xa011('0xf'),auth[_0xa011('0x6')](),controller[_0xa011('0x11')]);module[_0xa011('0x12')]=router;