Built motion from commit e6806ed6.|2.6.0
[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 _0x5346=['path','express','Router','fs-extra','./voiceChanSpy.controller','get','isAuthenticated','index','show','post','create','put','/:id','update','delete'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0x5346,0x13b));var _0x6534=function(_0x20d03f,_0xc969bd){_0x20d03f=_0x20d03f-0x0;var _0x174280=_0x5346[_0x20d03f];return _0x174280;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x6534('0x0'));var timeout=require('connect-timeout');var express=require(_0x6534('0x1'));var router=express[_0x6534('0x2')]();var fs_extra=require(_0x6534('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x6534('0x4'));router[_0x6534('0x5')]('/',auth[_0x6534('0x6')](),controller[_0x6534('0x7')]);router[_0x6534('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x6534('0x8')]);router[_0x6534('0x9')]('/',auth[_0x6534('0x6')](),controller[_0x6534('0xa')]);router[_0x6534('0xb')](_0x6534('0xc'),auth[_0x6534('0x6')](),controller[_0x6534('0xd')]);router[_0x6534('0xe')](_0x6534('0xc'),auth[_0x6534('0x6')](),controller['destroy']);module['exports']=router;