Built motion from commit (unavailable).|2.4.17
[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 _0x9622=['express','Router','../../components/auth/service','isAuthenticated','index','get','/:id','show','put','update','delete','destroy','exports','multer','util','path'];(function(_0x598b6f,_0x55690f){var _0x40959f=function(_0x5b23af){while(--_0x5b23af){_0x598b6f['push'](_0x598b6f['shift']());}};_0x40959f(++_0x55690f);}(_0x9622,0x8d));var _0x2962=function(_0x24cdd5,_0x4232a0){_0x24cdd5=_0x24cdd5-0x0;var _0x52a09e=_0x9622[_0x24cdd5];return _0x52a09e;};'use strict';var multer=require(_0x2962('0x0'));var util=require(_0x2962('0x1'));var path=require(_0x2962('0x2'));var timeout=require('connect-timeout');var express=require(_0x2962('0x3'));var router=express[_0x2962('0x4')]();var auth=require(_0x2962('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require('./voiceChanSpy.controller');router['get']('/',auth[_0x2962('0x6')](),controller[_0x2962('0x7')]);router[_0x2962('0x8')](_0x2962('0x9'),auth[_0x2962('0x6')](),controller[_0x2962('0xa')]);router['post']('/',auth[_0x2962('0x6')](),controller['create']);router[_0x2962('0xb')](_0x2962('0x9'),auth['isAuthenticated'](),controller[_0x2962('0xc')]);router[_0x2962('0xd')]('/:id',auth[_0x2962('0x6')](),controller[_0x2962('0xe')]);module[_0x2962('0xf')]=router;