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