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 _0xfc98=['../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/sounds','getSounds','create','post','addSound','update','delete','destroy','/:id/sounds/:id2','removeSound','exports','multer','util','path','connect-timeout','express','fs-extra','../../components/auth/service'];(function(_0x79cd47,_0x16102d){var _0x3b9484=function(_0x23db95){while(--_0x23db95){_0x79cd47['push'](_0x79cd47['shift']());}};_0x3b9484(++_0x16102d);}(_0xfc98,0xf3));var _0x8fc9=function(_0x36884e,_0x48008f){_0x36884e=_0x36884e-0x0;var _0x1cc367=_0xfc98[_0x36884e];return _0x1cc367;};'use strict';var multer=require(_0x8fc9('0x0'));var util=require(_0x8fc9('0x1'));var path=require(_0x8fc9('0x2'));var timeout=require(_0x8fc9('0x3'));var express=require(_0x8fc9('0x4'));var router=express['Router']();var fs_extra=require(_0x8fc9('0x5'));var auth=require(_0x8fc9('0x6'));var interaction=require(_0x8fc9('0x7'));var config=require(_0x8fc9('0x8'));var controller=require('./voiceMusicOnHold.controller');router['get']('/',auth[_0x8fc9('0x9')](),controller[_0x8fc9('0xa')]);router[_0x8fc9('0xb')](_0x8fc9('0xc'),auth['isAuthenticated'](),controller[_0x8fc9('0xd')]);router[_0x8fc9('0xb')](_0x8fc9('0xe'),auth['isAuthenticated'](),controller[_0x8fc9('0xf')]);router['post']('/',auth[_0x8fc9('0x9')](),controller[_0x8fc9('0x10')]);router[_0x8fc9('0x11')](_0x8fc9('0xe'),auth['isAuthenticated'](),controller[_0x8fc9('0x12')]);router['put'](_0x8fc9('0xc'),auth['isAuthenticated'](),controller[_0x8fc9('0x13')]);router[_0x8fc9('0x14')](_0x8fc9('0xc'),auth['isAuthenticated'](),controller[_0x8fc9('0x15')]);router[_0x8fc9('0x14')](_0x8fc9('0x16'),auth[_0x8fc9('0x9')](),controller[_0x8fc9('0x17')]);module[_0x8fc9('0x18')]=router;