Built motion from commit cafec4f3.|2.6.31
[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 _0x7e42=['/:id/sounds','post','create','addSound','put','delete','destroy','/:id/sounds/:id2','removeSound','exports','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','isAuthenticated','index','/:id'];(function(_0x50f3d8,_0x3e01e4){var _0x25bf69=function(_0x21dd51){while(--_0x21dd51){_0x50f3d8['push'](_0x50f3d8['shift']());}};_0x25bf69(++_0x3e01e4);}(_0x7e42,0x69));var _0x27e4=function(_0x20ae3a,_0x292a8f){_0x20ae3a=_0x20ae3a-0x0;var _0x20821b=_0x7e42[_0x20ae3a];return _0x20821b;};'use strict';var multer=require('multer');var util=require(_0x27e4('0x0'));var path=require('path');var timeout=require(_0x27e4('0x1'));var express=require(_0x27e4('0x2'));var router=express[_0x27e4('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x27e4('0x4'));var interaction=require(_0x27e4('0x5'));var config=require('../../config/environment');var controller=require('./voiceMusicOnHold.controller');router['get']('/',auth[_0x27e4('0x6')](),controller[_0x27e4('0x7')]);router['get'](_0x27e4('0x8'),auth[_0x27e4('0x6')](),controller['show']);router['get'](_0x27e4('0x9'),auth['isAuthenticated'](),controller['getSounds']);router[_0x27e4('0xa')]('/',auth[_0x27e4('0x6')](),controller[_0x27e4('0xb')]);router[_0x27e4('0xa')](_0x27e4('0x9'),auth[_0x27e4('0x6')](),controller[_0x27e4('0xc')]);router[_0x27e4('0xd')](_0x27e4('0x8'),auth[_0x27e4('0x6')](),controller['update']);router[_0x27e4('0xe')](_0x27e4('0x8'),auth[_0x27e4('0x6')](),controller[_0x27e4('0xf')]);router[_0x27e4('0xe')](_0x27e4('0x10'),auth[_0x27e4('0x6')](),controller[_0x27e4('0x11')]);module[_0x27e4('0x12')]=router;