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