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 _0xe746=['addApplications','put','update','destroy','exports','util','path','connect-timeout','express','../../components/auth/service','../../config/environment','./voiceExtension.controller','get','isAuthenticated','/:id','show','create','post'];(function(_0x50c835,_0x5acba2){var _0x5f130f=function(_0x2dcc71){while(--_0x2dcc71){_0x50c835['push'](_0x50c835['shift']());}};_0x5f130f(++_0x5acba2);}(_0xe746,0x1eb));var _0x6e74=function(_0x42a2d1,_0x5c6265){_0x42a2d1=_0x42a2d1-0x0;var _0x496c93=_0xe746[_0x42a2d1];return _0x496c93;};'use strict';var multer=require('multer');var util=require(_0x6e74('0x0'));var path=require(_0x6e74('0x1'));var timeout=require(_0x6e74('0x2'));var express=require(_0x6e74('0x3'));var router=express['Router']();var auth=require(_0x6e74('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x6e74('0x5'));var controller=require(_0x6e74('0x6'));router[_0x6e74('0x7')]('/',auth[_0x6e74('0x8')](),controller['index']);router[_0x6e74('0x7')](_0x6e74('0x9'),auth[_0x6e74('0x8')](),controller[_0x6e74('0xa')]);router['post']('/',auth['isAuthenticated'](),controller[_0x6e74('0xb')]);router[_0x6e74('0xc')]('/:id/applications',auth[_0x6e74('0x8')](),controller[_0x6e74('0xd')]);router[_0x6e74('0xe')](_0x6e74('0x9'),auth['isAuthenticated'](),controller[_0x6e74('0xf')]);router['delete'](_0x6e74('0x9'),auth[_0x6e74('0x8')](),controller[_0x6e74('0x10')]);module[_0x6e74('0x11')]=router;