5d64af0066856200324563a7c845c3312e976c2d
[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 _0x988a=['path','express','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','show','create','put','update','delete','destroy','exports','util'];(function(_0x2aabfa,_0x5bebdb){var _0x42b87d=function(_0x4e4261){while(--_0x4e4261){_0x2aabfa['push'](_0x2aabfa['shift']());}};_0x42b87d(++_0x5bebdb);}(_0x988a,0xe9));var _0xa988=function(_0x57d465,_0x1047a7){_0x57d465=_0x57d465-0x0;var _0x5d1983=_0x988a[_0x57d465];return _0x5d1983;};'use strict';var multer=require('multer');var util=require(_0xa988('0x0'));var path=require(_0xa988('0x1'));var timeout=require('connect-timeout');var express=require(_0xa988('0x2'));var router=express[_0xa988('0x3')]();var fs_extra=require(_0xa988('0x4'));var auth=require(_0xa988('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xa988('0x6'));var controller=require('./voiceChanSpy.controller');router[_0xa988('0x7')]('/',auth[_0xa988('0x8')](),controller[_0xa988('0x9')]);router[_0xa988('0x7')](_0xa988('0xa'),auth['isAuthenticated'](),controller[_0xa988('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0xa988('0xc')]);router[_0xa988('0xd')](_0xa988('0xa'),auth[_0xa988('0x8')](),controller[_0xa988('0xe')]);router[_0xa988('0xf')](_0xa988('0xa'),auth[_0xa988('0x8')](),controller[_0xa988('0x10')]);module[_0xa988('0x11')]=router;