87508d59c620d88ba370a5de2e49115b572248cb
[motion2.git] / server / api / voiceMusicOnHold / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x7b88=['getSounds','post','create','put','update','delete','destroy','/:id/sounds/:id2','removeSound','exports','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','get','index','/:id','isAuthenticated','show','/:id/sounds'];(function(_0x22705,_0x281a74){var _0x33faab=function(_0x168fbc){while(--_0x168fbc){_0x22705['push'](_0x22705['shift']());}};_0x33faab(++_0x281a74);}(_0x7b88,0x1ea));var _0x87b8=function(_0x565ed7,_0x398228){_0x565ed7=_0x565ed7-0x0;var _0x183ad7=_0x7b88[_0x565ed7];return _0x183ad7;};'use strict';var multer=require('multer');var util=require(_0x87b8('0x0'));var path=require(_0x87b8('0x1'));var timeout=require('connect-timeout');var express=require(_0x87b8('0x2'));var router=express[_0x87b8('0x3')]();var auth=require(_0x87b8('0x4'));var interaction=require(_0x87b8('0x5'));var config=require(_0x87b8('0x6'));var controller=require(_0x87b8('0x7'));router[_0x87b8('0x8')]('/',auth['isAuthenticated'](),controller[_0x87b8('0x9')]);router[_0x87b8('0x8')](_0x87b8('0xa'),auth[_0x87b8('0xb')](),controller[_0x87b8('0xc')]);router[_0x87b8('0x8')](_0x87b8('0xd'),auth[_0x87b8('0xb')](),controller[_0x87b8('0xe')]);router[_0x87b8('0xf')]('/',auth[_0x87b8('0xb')](),controller[_0x87b8('0x10')]);router[_0x87b8('0xf')](_0x87b8('0xd'),auth[_0x87b8('0xb')](),controller['addSound']);router[_0x87b8('0x11')](_0x87b8('0xa'),auth['isAuthenticated'](),controller[_0x87b8('0x12')]);router[_0x87b8('0x13')](_0x87b8('0xa'),auth[_0x87b8('0xb')](),controller[_0x87b8('0x14')]);router[_0x87b8('0x13')](_0x87b8('0x15'),auth[_0x87b8('0xb')](),controller[_0x87b8('0x16')]);module[_0x87b8('0x17')]=router;