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