Built motion from commit 19a84241.|2.5.34
[motion2.git] / server / api / voiceChanSpy / 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 _0xe307=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceChanSpy.controller','get','isAuthenticated','show','post','create','put','delete','/:id','destroy','exports','multer','util','path','connect-timeout'];(function(_0x27973c,_0x2d8b16){var _0x2ef123=function(_0x557ebb){while(--_0x557ebb){_0x27973c['push'](_0x27973c['shift']());}};_0x2ef123(++_0x2d8b16);}(_0xe307,0x178));var _0x7e30=function(_0x118c73,_0x54259e){_0x118c73=_0x118c73-0x0;var _0x4eac63=_0xe307[_0x118c73];return _0x4eac63;};'use strict';var multer=require(_0x7e30('0x0'));var util=require(_0x7e30('0x1'));var path=require(_0x7e30('0x2'));var timeout=require(_0x7e30('0x3'));var express=require('express');var router=express[_0x7e30('0x4')]();var fs_extra=require(_0x7e30('0x5'));var auth=require(_0x7e30('0x6'));var interaction=require(_0x7e30('0x7'));var config=require(_0x7e30('0x8'));var controller=require(_0x7e30('0x9'));router[_0x7e30('0xa')]('/',auth[_0x7e30('0xb')](),controller['index']);router[_0x7e30('0xa')]('/:id',auth[_0x7e30('0xb')](),controller[_0x7e30('0xc')]);router[_0x7e30('0xd')]('/',auth['isAuthenticated'](),controller[_0x7e30('0xe')]);router[_0x7e30('0xf')]('/:id',auth['isAuthenticated'](),controller['update']);router[_0x7e30('0x10')](_0x7e30('0x11'),auth['isAuthenticated'](),controller[_0x7e30('0x12')]);module[_0x7e30('0x13')]=router;