Built motion from commit (unavailable).|2.5.16
[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 _0xa842=['destroy','exports','multer','util','path','Router','../../components/auth/service','../../config/environment','isAuthenticated','get','/:id','post','put','update'];(function(_0x31b3fe,_0x2292ef){var _0x4b5e76=function(_0x376b00){while(--_0x376b00){_0x31b3fe['push'](_0x31b3fe['shift']());}};_0x4b5e76(++_0x2292ef);}(_0xa842,0x8e));var _0x2a84=function(_0x51d778,_0x482f12){_0x51d778=_0x51d778-0x0;var _0x619da8=_0xa842[_0x51d778];return _0x619da8;};'use strict';var multer=require(_0x2a84('0x0'));var util=require(_0x2a84('0x1'));var path=require(_0x2a84('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x2a84('0x3')]();var auth=require(_0x2a84('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x2a84('0x5'));var controller=require('./voiceChanSpy.controller');router['get']('/',auth[_0x2a84('0x6')](),controller['index']);router[_0x2a84('0x7')](_0x2a84('0x8'),auth[_0x2a84('0x6')](),controller['show']);router[_0x2a84('0x9')]('/',auth[_0x2a84('0x6')](),controller['create']);router[_0x2a84('0xa')]('/:id',auth[_0x2a84('0x6')](),controller[_0x2a84('0xb')]);router['delete'](_0x2a84('0x8'),auth['isAuthenticated'](),controller[_0x2a84('0xc')]);module[_0x2a84('0xd')]=router;