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