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