96ed284bd1ecd899203eaf6483c13abfeb4e9002
[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 _0x856c=['/:id','update','delete','util','path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','show','/:id/sounds','post','create','put'];(function(_0xde5d8a,_0x4afa17){var _0x2b3040=function(_0x112a1e){while(--_0x112a1e){_0xde5d8a['push'](_0xde5d8a['shift']());}};_0x2b3040(++_0x4afa17);}(_0x856c,0xcf));var _0xc856=function(_0x4dc9e2,_0x9b0f3e){_0x4dc9e2=_0x4dc9e2-0x0;var _0x54219e=_0x856c[_0x4dc9e2];return _0x54219e;};'use strict';var multer=require('multer');var util=require(_0xc856('0x0'));var path=require(_0xc856('0x1'));var timeout=require('connect-timeout');var express=require(_0xc856('0x2'));var router=express[_0xc856('0x3')]();var fs_extra=require(_0xc856('0x4'));var auth=require(_0xc856('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xc856('0x6'));var controller=require('./voiceMusicOnHold.controller');router[_0xc856('0x7')]('/',auth[_0xc856('0x8')](),controller['index']);router[_0xc856('0x7')]('/:id',auth[_0xc856('0x8')](),controller[_0xc856('0x9')]);router[_0xc856('0x7')](_0xc856('0xa'),auth['isAuthenticated'](),controller['getSounds']);router[_0xc856('0xb')]('/',auth['isAuthenticated'](),controller[_0xc856('0xc')]);router['post'](_0xc856('0xa'),auth[_0xc856('0x8')](),controller['addSound']);router[_0xc856('0xd')](_0xc856('0xe'),auth['isAuthenticated'](),controller[_0xc856('0xf')]);router[_0xc856('0x10')](_0xc856('0xe'),auth[_0xc856('0x8')](),controller['destroy']);router[_0xc856('0x10')]('/:id/sounds/:id2',auth[_0xc856('0x8')](),controller['removeSound']);module['exports']=router;