Built motion from commit 87cd5f02.|2.5.48
[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 _0x578b=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','create','put','update','delete','util','connect-timeout','express','Router'];(function(_0x4cd130,_0x63a28d){var _0x307ab8=function(_0x5e144b){while(--_0x5e144b){_0x4cd130['push'](_0x4cd130['shift']());}};_0x307ab8(++_0x63a28d);}(_0x578b,0x183));var _0xb578=function(_0x3ad5fe,_0x4b57bc){_0x3ad5fe=_0x3ad5fe-0x0;var _0x186865=_0x578b[_0x3ad5fe];return _0x186865;};'use strict';var multer=require('multer');var util=require(_0xb578('0x0'));var path=require('path');var timeout=require(_0xb578('0x1'));var express=require(_0xb578('0x2'));var router=express[_0xb578('0x3')]();var fs_extra=require(_0xb578('0x4'));var auth=require(_0xb578('0x5'));var interaction=require(_0xb578('0x6'));var config=require(_0xb578('0x7'));var controller=require('./voiceChanSpy.controller');router[_0xb578('0x8')]('/',auth[_0xb578('0x9')](),controller[_0xb578('0xa')]);router[_0xb578('0x8')](_0xb578('0xb'),auth[_0xb578('0x9')](),controller[_0xb578('0xc')]);router['post']('/',auth[_0xb578('0x9')](),controller[_0xb578('0xd')]);router[_0xb578('0xe')](_0xb578('0xb'),auth[_0xb578('0x9')](),controller[_0xb578('0xf')]);router[_0xb578('0x10')](_0xb578('0xb'),auth[_0xb578('0x9')](),controller['destroy']);module['exports']=router;