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