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 _0xfbee=['util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','isAuthenticated','/:id','create','post','/:id/applications','addApplications','delete','destroy','exports','multer'];(function(_0x377a6e,_0x59b99d){var _0x37f751=function(_0x2ed25c){while(--_0x2ed25c){_0x377a6e['push'](_0x377a6e['shift']());}};_0x37f751(++_0x59b99d);}(_0xfbee,0x1b7));var _0xefbe=function(_0x40e5b2,_0x122141){_0x40e5b2=_0x40e5b2-0x0;var _0xf63d67=_0xfbee[_0x40e5b2];return _0xf63d67;};'use strict';var multer=require(_0xefbe('0x0'));var util=require(_0xefbe('0x1'));var path=require(_0xefbe('0x2'));var timeout=require(_0xefbe('0x3'));var express=require(_0xefbe('0x4'));var router=express[_0xefbe('0x5')]();var fs_extra=require(_0xefbe('0x6'));var auth=require(_0xefbe('0x7'));var interaction=require(_0xefbe('0x8'));var config=require(_0xefbe('0x9'));var controller=require(_0xefbe('0xa'));router['get']('/',auth[_0xefbe('0xb')](),controller['index']);router['get'](_0xefbe('0xc'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xefbe('0xb')](),controller[_0xefbe('0xd')]);router[_0xefbe('0xe')](_0xefbe('0xf'),auth[_0xefbe('0xb')](),controller[_0xefbe('0x10')]);router['put']('/:id',auth[_0xefbe('0xb')](),controller['update']);router[_0xefbe('0x11')]('/:id',auth[_0xefbe('0xb')](),controller[_0xefbe('0x12')]);module[_0xefbe('0x13')]=router;