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 _0xbade=['/:id','destroy','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','show','post','/:id/applications','put','update','delete'];(function(_0x5e2c70,_0x108e64){var _0x1e6cbc=function(_0x46e5fd){while(--_0x46e5fd){_0x5e2c70['push'](_0x5e2c70['shift']());}};_0x1e6cbc(++_0x108e64);}(_0xbade,0x1ce));var _0xebad=function(_0x1db251,_0xf0443d){_0x1db251=_0x1db251-0x0;var _0x56685a=_0xbade[_0x1db251];return _0x56685a;};'use strict';var multer=require(_0xebad('0x0'));var util=require(_0xebad('0x1'));var path=require(_0xebad('0x2'));var timeout=require(_0xebad('0x3'));var express=require('express');var router=express[_0xebad('0x4')]();var auth=require(_0xebad('0x5'));var interaction=require(_0xebad('0x6'));var config=require('../../config/environment');var controller=require('./voiceExtension.controller');router['get']('/',auth[_0xebad('0x7')](),controller['index']);router['get']('/:id',auth[_0xebad('0x7')](),controller[_0xebad('0x8')]);router[_0xebad('0x9')]('/',auth[_0xebad('0x7')](),controller['create']);router['post'](_0xebad('0xa'),auth[_0xebad('0x7')](),controller['addApplications']);router[_0xebad('0xb')]('/:id',auth['isAuthenticated'](),controller[_0xebad('0xc')]);router[_0xebad('0xd')](_0xebad('0xe'),auth[_0xebad('0x7')](),controller[_0xebad('0xf')]);module[_0xebad('0x10')]=router;