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