a6422292b2c392c060678e06e55d13ffb60d6789
[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 _0xf508=['./voiceChanSpy.controller','get','isAuthenticated','show','post','create','put','/:id','update','delete','destroy','multer','path','connect-timeout','express','Router','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x54b756,_0x1f791b){var _0x27c399=function(_0x3cd9c5){while(--_0x3cd9c5){_0x54b756['push'](_0x54b756['shift']());}};_0x27c399(++_0x1f791b);}(_0xf508,0xc9));var _0x8f50=function(_0x175a89,_0x4aa306){_0x175a89=_0x175a89-0x0;var _0xf6e2ff=_0xf508[_0x175a89];return _0xf6e2ff;};'use strict';var multer=require(_0x8f50('0x0'));var util=require('util');var path=require(_0x8f50('0x1'));var timeout=require(_0x8f50('0x2'));var express=require(_0x8f50('0x3'));var router=express[_0x8f50('0x4')]();var fs_extra=require(_0x8f50('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0x8f50('0x6'));var config=require(_0x8f50('0x7'));var controller=require(_0x8f50('0x8'));router[_0x8f50('0x9')]('/',auth[_0x8f50('0xa')](),controller['index']);router['get']('/:id',auth[_0x8f50('0xa')](),controller[_0x8f50('0xb')]);router[_0x8f50('0xc')]('/',auth[_0x8f50('0xa')](),controller[_0x8f50('0xd')]);router[_0x8f50('0xe')](_0x8f50('0xf'),auth[_0x8f50('0xa')](),controller[_0x8f50('0x10')]);router[_0x8f50('0x11')](_0x8f50('0xf'),auth[_0x8f50('0xa')](),controller[_0x8f50('0x12')]);module['exports']=router;