2e832747fc237322cda9d5d549b58ab9858ff7ad
[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 _0xe029=['path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','post','create','delete','destroy','multer','util'];(function(_0x1034bb,_0x4e20b3){var _0x453fdb=function(_0x455356){while(--_0x455356){_0x1034bb['push'](_0x1034bb['shift']());}};_0x453fdb(++_0x4e20b3);}(_0xe029,0xe2));var _0x9e02=function(_0x588f2c,_0x10e069){_0x588f2c=_0x588f2c-0x0;var _0x467467=_0xe029[_0x588f2c];return _0x467467;};'use strict';var multer=require(_0x9e02('0x0'));var util=require(_0x9e02('0x1'));var path=require(_0x9e02('0x2'));var timeout=require(_0x9e02('0x3'));var express=require(_0x9e02('0x4'));var router=express[_0x9e02('0x5')]();var fs_extra=require(_0x9e02('0x6'));var auth=require(_0x9e02('0x7'));var interaction=require(_0x9e02('0x8'));var config=require(_0x9e02('0x9'));var controller=require('./voiceChanSpy.controller');router[_0x9e02('0xa')]('/',auth[_0x9e02('0xb')](),controller[_0x9e02('0xc')]);router['get'](_0x9e02('0xd'),auth['isAuthenticated'](),controller[_0x9e02('0xe')]);router[_0x9e02('0xf')]('/',auth[_0x9e02('0xb')](),controller[_0x9e02('0x10')]);router['put'](_0x9e02('0xd'),auth[_0x9e02('0xb')](),controller['update']);router[_0x9e02('0x11')](_0x9e02('0xd'),auth['isAuthenticated'](),controller[_0x9e02('0x12')]);module['exports']=router;