f3a99907cd0338b2affe3f6ac8c14067f6a6086a
[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 _0x6459=['isAuthenticated','get','/:id','show','put','update','destroy','exports','multer','util','path','express','Router','fs-extra','../../components/auth/service'];(function(_0x235d5e,_0x59c633){var _0x5e5f24=function(_0x32aae2){while(--_0x32aae2){_0x235d5e['push'](_0x235d5e['shift']());}};_0x5e5f24(++_0x59c633);}(_0x6459,0x18e));var _0x9645=function(_0x19d272,_0x166b08){_0x19d272=_0x19d272-0x0;var _0x28a67f=_0x6459[_0x19d272];return _0x28a67f;};'use strict';var multer=require(_0x9645('0x0'));var util=require(_0x9645('0x1'));var path=require(_0x9645('0x2'));var timeout=require('connect-timeout');var express=require(_0x9645('0x3'));var router=express[_0x9645('0x4')]();var fs_extra=require(_0x9645('0x5'));var auth=require(_0x9645('0x6'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./voiceChanSpy.controller');router['get']('/',auth[_0x9645('0x7')](),controller['index']);router[_0x9645('0x8')](_0x9645('0x9'),auth[_0x9645('0x7')](),controller[_0x9645('0xa')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x9645('0xb')](_0x9645('0x9'),auth[_0x9645('0x7')](),controller[_0x9645('0xc')]);router['delete'](_0x9645('0x9'),auth['isAuthenticated'](),controller[_0x9645('0xd')]);module[_0x9645('0xe')]=router;