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 _0x0fd4=['destroy','exports','util','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceExtension.controller','get','/:id','isAuthenticated','show','post','/:id/applications','addApplications','put','update','delete'];(function(_0x96fdf9,_0x1f2c90){var _0x34650f=function(_0x46602c){while(--_0x46602c){_0x96fdf9['push'](_0x96fdf9['shift']());}};_0x34650f(++_0x1f2c90);}(_0x0fd4,0xda));var _0x40fd=function(_0x1fa759,_0x4ecdce){_0x1fa759=_0x1fa759-0x0;var _0x2da9f4=_0x0fd4[_0x1fa759];return _0x2da9f4;};'use strict';var multer=require('multer');var util=require(_0x40fd('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x40fd('0x1')]();var fs_extra=require('fs-extra');var auth=require(_0x40fd('0x2'));var interaction=require(_0x40fd('0x3'));var config=require(_0x40fd('0x4'));var controller=require(_0x40fd('0x5'));router[_0x40fd('0x6')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0x40fd('0x7'),auth[_0x40fd('0x8')](),controller[_0x40fd('0x9')]);router[_0x40fd('0xa')]('/',auth[_0x40fd('0x8')](),controller['create']);router['post'](_0x40fd('0xb'),auth['isAuthenticated'](),controller[_0x40fd('0xc')]);router[_0x40fd('0xd')](_0x40fd('0x7'),auth[_0x40fd('0x8')](),controller[_0x40fd('0xe')]);router[_0x40fd('0xf')]('/:id',auth[_0x40fd('0x8')](),controller[_0x40fd('0x10')]);module[_0x40fd('0x11')]=router;