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