Built motion from commit 775e2a94.|2.6.3
[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 _0x1019=['update','delete','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put'];(function(_0x3a081b,_0x516437){var _0xb166c4=function(_0x22bc5d){while(--_0x22bc5d){_0x3a081b['push'](_0x3a081b['shift']());}};_0xb166c4(++_0x516437);}(_0x1019,0x17f));var _0x9101=function(_0x4b707f,_0x5e009d){_0x4b707f=_0x4b707f-0x0;var _0x1aad12=_0x1019[_0x4b707f];return _0x1aad12;};'use strict';var multer=require(_0x9101('0x0'));var util=require(_0x9101('0x1'));var path=require(_0x9101('0x2'));var timeout=require('connect-timeout');var express=require(_0x9101('0x3'));var router=express[_0x9101('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x9101('0x5'));var interaction=require(_0x9101('0x6'));var config=require(_0x9101('0x7'));var controller=require('./voiceChanSpy.controller');router[_0x9101('0x8')]('/',auth['isAuthenticated'](),controller[_0x9101('0x9')]);router[_0x9101('0x8')](_0x9101('0xa'),auth[_0x9101('0xb')](),controller[_0x9101('0xc')]);router[_0x9101('0xd')]('/',auth['isAuthenticated'](),controller[_0x9101('0xe')]);router[_0x9101('0xf')](_0x9101('0xa'),auth['isAuthenticated'](),controller[_0x9101('0x10')]);router[_0x9101('0x11')](_0x9101('0xa'),auth[_0x9101('0xb')](),controller['destroy']);module[_0x9101('0x12')]=router;