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 _0x8bed=['Router','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','isAuthenticated','get','/:id/sounds','post','create','/:id','destroy','delete','removeSound','multer','util','path','express'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x8bed,0xea));var _0xd8be=function(_0x5c72ee,_0x5a8bf8){_0x5c72ee=_0x5c72ee-0x0;var _0x231876=_0x8bed[_0x5c72ee];return _0x231876;};'use strict';var multer=require(_0xd8be('0x0'));var util=require(_0xd8be('0x1'));var path=require(_0xd8be('0x2'));var timeout=require('connect-timeout');var express=require(_0xd8be('0x3'));var router=express[_0xd8be('0x4')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xd8be('0x5'));var config=require(_0xd8be('0x6'));var controller=require(_0xd8be('0x7'));router['get']('/',auth[_0xd8be('0x8')](),controller['index']);router[_0xd8be('0x9')]('/:id',auth[_0xd8be('0x8')](),controller['show']);router['get'](_0xd8be('0xa'),auth[_0xd8be('0x8')](),controller['getSounds']);router[_0xd8be('0xb')]('/',auth[_0xd8be('0x8')](),controller[_0xd8be('0xc')]);router[_0xd8be('0xb')]('/:id/sounds',auth[_0xd8be('0x8')](),controller['addSound']);router['put'](_0xd8be('0xd'),auth[_0xd8be('0x8')](),controller['update']);router['delete']('/:id',auth['isAuthenticated'](),controller[_0xd8be('0xe')]);router[_0xd8be('0xf')]('/:id/sounds/:id2',auth['isAuthenticated'](),controller[_0xd8be('0x10')]);module['exports']=router;