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