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