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