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 _0xbc69=['/:id/applications','addApplications','put','destroy','exports','multer','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','post','create'];(function(_0xe02f45,_0x35414a){var _0x3a400f=function(_0x583435){while(--_0x583435){_0xe02f45['push'](_0xe02f45['shift']());}};_0x3a400f(++_0x35414a);}(_0xbc69,0xe5));var _0x9bc6=function(_0x2b7764,_0x2606f1){_0x2b7764=_0x2b7764-0x0;var _0x848dcb=_0xbc69[_0x2b7764];return _0x848dcb;};'use strict';var multer=require(_0x9bc6('0x0'));var util=require('util');var path=require(_0x9bc6('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x9bc6('0x2')]();var auth=require(_0x9bc6('0x3'));var interaction=require(_0x9bc6('0x4'));var config=require(_0x9bc6('0x5'));var controller=require('./voiceExtension.controller');router['get']('/',auth[_0x9bc6('0x6')](),controller[_0x9bc6('0x7')]);router['get'](_0x9bc6('0x8'),auth['isAuthenticated'](),controller['show']);router[_0x9bc6('0x9')]('/',auth[_0x9bc6('0x6')](),controller[_0x9bc6('0xa')]);router['post'](_0x9bc6('0xb'),auth[_0x9bc6('0x6')](),controller[_0x9bc6('0xc')]);router[_0x9bc6('0xd')](_0x9bc6('0x8'),auth[_0x9bc6('0x6')](),controller['update']);router['delete'](_0x9bc6('0x8'),auth[_0x9bc6('0x6')](),controller[_0x9bc6('0xe')]);module[_0x9bc6('0xf')]=router;