Built motion from commit (unavailable).|2.4.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 _0x1f7d=['express','Router','../../components/auth/service','../../config/environment','isAuthenticated','index','/:id','show','get','/:id/sounds','getSounds','post','create','addSound','delete','destroy','removeSound','exports','multer','path'];(function(_0x36be09,_0x3a1e64){var _0x200407=function(_0x295427){while(--_0x295427){_0x36be09['push'](_0x36be09['shift']());}};_0x200407(++_0x3a1e64);}(_0x1f7d,0x9e));var _0xd1f7=function(_0x25dc70,_0x273fa3){_0x25dc70=_0x25dc70-0x0;var _0x50ec3a=_0x1f7d[_0x25dc70];return _0x50ec3a;};'use strict';var multer=require(_0xd1f7('0x0'));var util=require('util');var path=require(_0xd1f7('0x1'));var timeout=require('connect-timeout');var express=require(_0xd1f7('0x2'));var router=express[_0xd1f7('0x3')]();var auth=require(_0xd1f7('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xd1f7('0x5'));var controller=require('./voiceMusicOnHold.controller');router['get']('/',auth[_0xd1f7('0x6')](),controller[_0xd1f7('0x7')]);router['get'](_0xd1f7('0x8'),auth['isAuthenticated'](),controller[_0xd1f7('0x9')]);router[_0xd1f7('0xa')](_0xd1f7('0xb'),auth[_0xd1f7('0x6')](),controller[_0xd1f7('0xc')]);router[_0xd1f7('0xd')]('/',auth[_0xd1f7('0x6')](),controller[_0xd1f7('0xe')]);router[_0xd1f7('0xd')](_0xd1f7('0xb'),auth[_0xd1f7('0x6')](),controller[_0xd1f7('0xf')]);router['put'](_0xd1f7('0x8'),auth['isAuthenticated'](),controller['update']);router[_0xd1f7('0x10')](_0xd1f7('0x8'),auth[_0xd1f7('0x6')](),controller[_0xd1f7('0x11')]);router[_0xd1f7('0x10')]('/:id/sounds/:id2',auth['isAuthenticated'](),controller[_0xd1f7('0x12')]);module[_0xd1f7('0x13')]=router;