8ece3791bd13ee6b189728ad8ff2d46e5b6f3b3d
[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 _0xb2db=['get','index','/:id','isAuthenticated','show','/:id/sounds','getSounds','post','addSound','put','update','delete','destroy','/:id/sounds/:id2','removeSound','multer','util','path','connect-timeout','express','Router','./voiceMusicOnHold.controller'];(function(_0x3cc356,_0x67281){var _0x59293f=function(_0x50aca6){while(--_0x50aca6){_0x3cc356['push'](_0x3cc356['shift']());}};_0x59293f(++_0x67281);}(_0xb2db,0x159));var _0xbb2d=function(_0xa2deb6,_0x54dcb3){_0xa2deb6=_0xa2deb6-0x0;var _0x536543=_0xb2db[_0xa2deb6];return _0x536543;};'use strict';var multer=require(_0xbb2d('0x0'));var util=require(_0xbb2d('0x1'));var path=require(_0xbb2d('0x2'));var timeout=require(_0xbb2d('0x3'));var express=require(_0xbb2d('0x4'));var router=express[_0xbb2d('0x5')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xbb2d('0x6'));router[_0xbb2d('0x7')]('/',auth['isAuthenticated'](),controller[_0xbb2d('0x8')]);router[_0xbb2d('0x7')](_0xbb2d('0x9'),auth[_0xbb2d('0xa')](),controller[_0xbb2d('0xb')]);router[_0xbb2d('0x7')](_0xbb2d('0xc'),auth[_0xbb2d('0xa')](),controller[_0xbb2d('0xd')]);router[_0xbb2d('0xe')]('/',auth[_0xbb2d('0xa')](),controller['create']);router[_0xbb2d('0xe')](_0xbb2d('0xc'),auth[_0xbb2d('0xa')](),controller[_0xbb2d('0xf')]);router[_0xbb2d('0x10')](_0xbb2d('0x9'),auth[_0xbb2d('0xa')](),controller[_0xbb2d('0x11')]);router[_0xbb2d('0x12')](_0xbb2d('0x9'),auth['isAuthenticated'](),controller[_0xbb2d('0x13')]);router[_0xbb2d('0x12')](_0xbb2d('0x14'),auth[_0xbb2d('0xa')](),controller[_0xbb2d('0x15')]);module['exports']=router;