Built motion from commit b0a9a629.|2.6.33
[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 _0xd197=['get','isAuthenticated','index','/:id','show','getSounds','create','put','update','delete','removeSound','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceMusicOnHold.controller'];(function(_0xf819b8,_0x26c6d0){var _0x3de293=function(_0xb80faa){while(--_0xb80faa){_0xf819b8['push'](_0xf819b8['shift']());}};_0x3de293(++_0x26c6d0);}(_0xd197,0x140));var _0x7d19=function(_0x302b2b,_0x55674c){_0x302b2b=_0x302b2b-0x0;var _0xf4cda2=_0xd197[_0x302b2b];return _0xf4cda2;};'use strict';var multer=require(_0x7d19('0x0'));var util=require(_0x7d19('0x1'));var path=require(_0x7d19('0x2'));var timeout=require(_0x7d19('0x3'));var express=require(_0x7d19('0x4'));var router=express[_0x7d19('0x5')]();var fs_extra=require(_0x7d19('0x6'));var auth=require(_0x7d19('0x7'));var interaction=require(_0x7d19('0x8'));var config=require('../../config/environment');var controller=require(_0x7d19('0x9'));router[_0x7d19('0xa')]('/',auth[_0x7d19('0xb')](),controller[_0x7d19('0xc')]);router[_0x7d19('0xa')](_0x7d19('0xd'),auth['isAuthenticated'](),controller[_0x7d19('0xe')]);router['get']('/:id/sounds',auth[_0x7d19('0xb')](),controller[_0x7d19('0xf')]);router['post']('/',auth[_0x7d19('0xb')](),controller[_0x7d19('0x10')]);router['post']('/:id/sounds',auth[_0x7d19('0xb')](),controller['addSound']);router[_0x7d19('0x11')]('/:id',auth[_0x7d19('0xb')](),controller[_0x7d19('0x12')]);router['delete'](_0x7d19('0xd'),auth[_0x7d19('0xb')](),controller['destroy']);router[_0x7d19('0x13')]('/:id/sounds/:id2',auth[_0x7d19('0xb')](),controller[_0x7d19('0x14')]);module[_0x7d19('0x15')]=router;