Built motion from commit b5996064.|2.6.21
[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 _0x960a=['../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','index','get','/:id','show','/:id/sounds','isAuthenticated','getSounds','post','create','addSound','put','update','delete','destroy','removeSound','exports','multer','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x1d5d94,_0x2588a8){var _0x4b7fb0=function(_0x403b70){while(--_0x403b70){_0x1d5d94['push'](_0x1d5d94['shift']());}};_0x4b7fb0(++_0x2588a8);}(_0x960a,0x18a));var _0xa960=function(_0x337217,_0x397670){_0x337217=_0x337217-0x0;var _0x3495ff=_0x960a[_0x337217];return _0x3495ff;};'use strict';var multer=require(_0xa960('0x0'));var util=require('util');var path=require(_0xa960('0x1'));var timeout=require(_0xa960('0x2'));var express=require(_0xa960('0x3'));var router=express[_0xa960('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xa960('0x5'));var interaction=require(_0xa960('0x6'));var config=require(_0xa960('0x7'));var controller=require(_0xa960('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0xa960('0x9')]);router[_0xa960('0xa')](_0xa960('0xb'),auth['isAuthenticated'](),controller[_0xa960('0xc')]);router[_0xa960('0xa')](_0xa960('0xd'),auth[_0xa960('0xe')](),controller[_0xa960('0xf')]);router[_0xa960('0x10')]('/',auth['isAuthenticated'](),controller[_0xa960('0x11')]);router[_0xa960('0x10')](_0xa960('0xd'),auth[_0xa960('0xe')](),controller[_0xa960('0x12')]);router[_0xa960('0x13')](_0xa960('0xb'),auth[_0xa960('0xe')](),controller[_0xa960('0x14')]);router[_0xa960('0x15')](_0xa960('0xb'),auth[_0xa960('0xe')](),controller[_0xa960('0x16')]);router['delete']('/:id/sounds/:id2',auth['isAuthenticated'](),controller[_0xa960('0x17')]);module[_0xa960('0x18')]=router;