6053f16cfeb0026a8618081ceabb9fe3fec62ea3
[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 _0xe04a=['fs-extra','../../components/interaction/service','../../config/environment','./voiceChanSpy.controller','get','isAuthenticated','/:id','create','update','delete','destroy','path','connect-timeout','express','Router'];(function(_0x311c35,_0x534915){var _0x5cc50c=function(_0x3ad680){while(--_0x3ad680){_0x311c35['push'](_0x311c35['shift']());}};_0x5cc50c(++_0x534915);}(_0xe04a,0x182));var _0xae04=function(_0x4207e1,_0x42d8fb){_0x4207e1=_0x4207e1-0x0;var _0x701eff=_0xe04a[_0x4207e1];return _0x701eff;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xae04('0x0'));var timeout=require(_0xae04('0x1'));var express=require(_0xae04('0x2'));var router=express[_0xae04('0x3')]();var fs_extra=require(_0xae04('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xae04('0x5'));var config=require(_0xae04('0x6'));var controller=require(_0xae04('0x7'));router[_0xae04('0x8')]('/',auth[_0xae04('0x9')](),controller['index']);router[_0xae04('0x8')](_0xae04('0xa'),auth[_0xae04('0x9')](),controller['show']);router['post']('/',auth[_0xae04('0x9')](),controller[_0xae04('0xb')]);router['put']('/:id',auth[_0xae04('0x9')](),controller[_0xae04('0xc')]);router[_0xae04('0xd')]('/:id',auth[_0xae04('0x9')](),controller[_0xae04('0xe')]);module['exports']=router;