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 _0x80cd=['delete','destroy','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','show','post','addApplications','/:id','update'];(function(_0x5ba291,_0x24c1df){var _0xb41a2a=function(_0x5321e7){while(--_0x5321e7){_0x5ba291['push'](_0x5ba291['shift']());}};_0xb41a2a(++_0x24c1df);}(_0x80cd,0x146));var _0xd80c=function(_0x349367,_0x1cede2){_0x349367=_0x349367-0x0;var _0x14179b=_0x80cd[_0x349367];return _0x14179b;};'use strict';var multer=require('multer');var util=require(_0xd80c('0x0'));var path=require(_0xd80c('0x1'));var timeout=require(_0xd80c('0x2'));var express=require(_0xd80c('0x3'));var router=express[_0xd80c('0x4')]();var auth=require(_0xd80c('0x5'));var interaction=require(_0xd80c('0x6'));var config=require(_0xd80c('0x7'));var controller=require('./voiceExtension.controller');router[_0xd80c('0x8')]('/',auth[_0xd80c('0x9')](),controller[_0xd80c('0xa')]);router[_0xd80c('0x8')]('/:id',auth[_0xd80c('0x9')](),controller[_0xd80c('0xb')]);router[_0xd80c('0xc')]('/',auth[_0xd80c('0x9')](),controller['create']);router[_0xd80c('0xc')]('/:id/applications',auth['isAuthenticated'](),controller[_0xd80c('0xd')]);router['put'](_0xd80c('0xe'),auth[_0xd80c('0x9')](),controller[_0xd80c('0xf')]);router[_0xd80c('0x10')](_0xd80c('0xe'),auth[_0xd80c('0x9')](),controller[_0xd80c('0x11')]);module['exports']=router;