Built motion from commit 10af8726.|2.6.34
[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 _0x465f=['exports','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceMusicOnHold.controller','isAuthenticated','index','get','/:id','show','/:id/sounds','getSounds','post','create','addSound','update','destroy','delete','/:id/sounds/:id2'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x465f,0x79));var _0xf465=function(_0x4969e5,_0x592650){_0x4969e5=_0x4969e5-0x0;var _0x472dee=_0x465f[_0x4969e5];return _0x472dee;};'use strict';var multer=require('multer');var util=require(_0xf465('0x0'));var path=require(_0xf465('0x1'));var timeout=require(_0xf465('0x2'));var express=require(_0xf465('0x3'));var router=express[_0xf465('0x4')]();var fs_extra=require(_0xf465('0x5'));var auth=require(_0xf465('0x6'));var interaction=require(_0xf465('0x7'));var config=require('../../config/environment');var controller=require(_0xf465('0x8'));router['get']('/',auth[_0xf465('0x9')](),controller[_0xf465('0xa')]);router[_0xf465('0xb')](_0xf465('0xc'),auth['isAuthenticated'](),controller[_0xf465('0xd')]);router[_0xf465('0xb')](_0xf465('0xe'),auth['isAuthenticated'](),controller[_0xf465('0xf')]);router[_0xf465('0x10')]('/',auth[_0xf465('0x9')](),controller[_0xf465('0x11')]);router[_0xf465('0x10')](_0xf465('0xe'),auth['isAuthenticated'](),controller[_0xf465('0x12')]);router['put'](_0xf465('0xc'),auth[_0xf465('0x9')](),controller[_0xf465('0x13')]);router['delete'](_0xf465('0xc'),auth[_0xf465('0x9')](),controller[_0xf465('0x14')]);router[_0xf465('0x15')](_0xf465('0x16'),auth[_0xf465('0x9')](),controller['removeSound']);module[_0xf465('0x17')]=router;