fbf07f2618689315e96fb2af28c7a18fa7be4a6f
[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 _0xf2ca=['../../components/auth/service','../../config/environment','./voiceChanSpy.controller','isAuthenticated','index','get','/:id','show','post','put','update','destroy','exports','util','path','express','Router','fs-extra'];(function(_0x49c4e9,_0x3233b8){var _0xd4ba51=function(_0x5aa6fe){while(--_0x5aa6fe){_0x49c4e9['push'](_0x49c4e9['shift']());}};_0xd4ba51(++_0x3233b8);}(_0xf2ca,0x163));var _0xaf2c=function(_0x3e5bc8,_0x457d89){_0x3e5bc8=_0x3e5bc8-0x0;var _0xfd84bc=_0xf2ca[_0x3e5bc8];return _0xfd84bc;};'use strict';var multer=require('multer');var util=require(_0xaf2c('0x0'));var path=require(_0xaf2c('0x1'));var timeout=require('connect-timeout');var express=require(_0xaf2c('0x2'));var router=express[_0xaf2c('0x3')]();var fs_extra=require(_0xaf2c('0x4'));var auth=require(_0xaf2c('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xaf2c('0x6'));var controller=require(_0xaf2c('0x7'));router['get']('/',auth[_0xaf2c('0x8')](),controller[_0xaf2c('0x9')]);router[_0xaf2c('0xa')](_0xaf2c('0xb'),auth[_0xaf2c('0x8')](),controller[_0xaf2c('0xc')]);router[_0xaf2c('0xd')]('/',auth[_0xaf2c('0x8')](),controller['create']);router[_0xaf2c('0xe')](_0xaf2c('0xb'),auth[_0xaf2c('0x8')](),controller[_0xaf2c('0xf')]);router['delete'](_0xaf2c('0xb'),auth['isAuthenticated'](),controller[_0xaf2c('0x10')]);module[_0xaf2c('0x11')]=router;