Built motion from commit ddca4d0d.|2.5.47
[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 _0x9f04=['/:id/sounds/:id2','removeSound','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','get','index','/:id','isAuthenticated','getSounds','post','create','/:id/sounds','addSound','put','delete'];(function(_0x2c7618,_0x26be9c){var _0x5ce3f0=function(_0x1837b3){while(--_0x1837b3){_0x2c7618['push'](_0x2c7618['shift']());}};_0x5ce3f0(++_0x26be9c);}(_0x9f04,0x1e2));var _0x49f0=function(_0x5037ab,_0x43209e){_0x5037ab=_0x5037ab-0x0;var _0x512adb=_0x9f04[_0x5037ab];return _0x512adb;};'use strict';var multer=require(_0x49f0('0x0'));var util=require(_0x49f0('0x1'));var path=require(_0x49f0('0x2'));var timeout=require(_0x49f0('0x3'));var express=require(_0x49f0('0x4'));var router=express[_0x49f0('0x5')]();var fs_extra=require(_0x49f0('0x6'));var auth=require(_0x49f0('0x7'));var interaction=require(_0x49f0('0x8'));var config=require(_0x49f0('0x9'));var controller=require(_0x49f0('0xa'));router[_0x49f0('0xb')]('/',auth['isAuthenticated'](),controller[_0x49f0('0xc')]);router[_0x49f0('0xb')](_0x49f0('0xd'),auth[_0x49f0('0xe')](),controller['show']);router[_0x49f0('0xb')]('/:id/sounds',auth[_0x49f0('0xe')](),controller[_0x49f0('0xf')]);router[_0x49f0('0x10')]('/',auth[_0x49f0('0xe')](),controller[_0x49f0('0x11')]);router[_0x49f0('0x10')](_0x49f0('0x12'),auth['isAuthenticated'](),controller[_0x49f0('0x13')]);router[_0x49f0('0x14')](_0x49f0('0xd'),auth[_0x49f0('0xe')](),controller['update']);router['delete']('/:id',auth[_0x49f0('0xe')](),controller['destroy']);router[_0x49f0('0x15')](_0x49f0('0x16'),auth['isAuthenticated'](),controller[_0x49f0('0x17')]);module['exports']=router;