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