Built motion from commit 13c3002c.|2.6.9
[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 _0xc9ec=['path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceChanSpy.controller','isAuthenticated','/:id','show','create','put','delete','destroy','util'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xc9ec,0xcf));var _0xcc9e=function(_0x1a72b8,_0x1e4f4b){_0x1a72b8=_0x1a72b8-0x0;var _0x39f72d=_0xc9ec[_0x1a72b8];return _0x39f72d;};'use strict';var multer=require('multer');var util=require(_0xcc9e('0x0'));var path=require(_0xcc9e('0x1'));var timeout=require('connect-timeout');var express=require(_0xcc9e('0x2'));var router=express[_0xcc9e('0x3')]();var fs_extra=require(_0xcc9e('0x4'));var auth=require(_0xcc9e('0x5'));var interaction=require(_0xcc9e('0x6'));var config=require(_0xcc9e('0x7'));var controller=require(_0xcc9e('0x8'));router['get']('/',auth[_0xcc9e('0x9')](),controller['index']);router['get'](_0xcc9e('0xa'),auth['isAuthenticated'](),controller[_0xcc9e('0xb')]);router['post']('/',auth[_0xcc9e('0x9')](),controller[_0xcc9e('0xc')]);router[_0xcc9e('0xd')](_0xcc9e('0xa'),auth['isAuthenticated'](),controller['update']);router[_0xcc9e('0xe')](_0xcc9e('0xa'),auth[_0xcc9e('0x9')](),controller[_0xcc9e('0xf')]);module['exports']=router;