Built motion from commit 1fa89557.|2.6.10
[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 _0xdbea=['exports','multer','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceMusicOnHold.controller','get','isAuthenticated','/:id','show','/:id/sounds','post','addSound','put','delete','destroy','/:id/sounds/:id2'];(function(_0x1c3cad,_0x6f9969){var _0x907e3c=function(_0x231e25){while(--_0x231e25){_0x1c3cad['push'](_0x1c3cad['shift']());}};_0x907e3c(++_0x6f9969);}(_0xdbea,0xf8));var _0xadbe=function(_0x55dd49,_0x64ccc0){_0x55dd49=_0x55dd49-0x0;var _0x568485=_0xdbea[_0x55dd49];return _0x568485;};'use strict';var multer=require(_0xadbe('0x0'));var util=require('util');var path=require(_0xadbe('0x1'));var timeout=require(_0xadbe('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0xadbe('0x3'));var interaction=require(_0xadbe('0x4'));var config=require(_0xadbe('0x5'));var controller=require(_0xadbe('0x6'));router[_0xadbe('0x7')]('/',auth[_0xadbe('0x8')](),controller['index']);router[_0xadbe('0x7')](_0xadbe('0x9'),auth[_0xadbe('0x8')](),controller[_0xadbe('0xa')]);router['get'](_0xadbe('0xb'),auth[_0xadbe('0x8')](),controller['getSounds']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xadbe('0xc')]('/:id/sounds',auth['isAuthenticated'](),controller[_0xadbe('0xd')]);router[_0xadbe('0xe')](_0xadbe('0x9'),auth['isAuthenticated'](),controller['update']);router[_0xadbe('0xf')]('/:id',auth[_0xadbe('0x8')](),controller[_0xadbe('0x10')]);router[_0xadbe('0xf')](_0xadbe('0x11'),auth[_0xadbe('0x8')](),controller['removeSound']);module[_0xadbe('0x12')]=router;