Built motion from commit (unavailable).|2.5.25
[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 _0xf8af=['put','/:id','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','./voiceChanSpy.controller','get','isAuthenticated','show','post','create'];(function(_0x27bcd1,_0x336161){var _0x72445a=function(_0x26f9e8){while(--_0x26f9e8){_0x27bcd1['push'](_0x27bcd1['shift']());}};_0x72445a(++_0x336161);}(_0xf8af,0x8b));var _0xff8a=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0xf8af[_0x17d9e3];return _0x14192d;};'use strict';var multer=require(_0xff8a('0x0'));var util=require('util');var path=require(_0xff8a('0x1'));var timeout=require(_0xff8a('0x2'));var express=require(_0xff8a('0x3'));var router=express[_0xff8a('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xff8a('0x5'));var config=require(_0xff8a('0x6'));var controller=require(_0xff8a('0x7'));router[_0xff8a('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xff8a('0x8')]('/:id',auth[_0xff8a('0x9')](),controller[_0xff8a('0xa')]);router[_0xff8a('0xb')]('/',auth[_0xff8a('0x9')](),controller[_0xff8a('0xc')]);router[_0xff8a('0xd')](_0xff8a('0xe'),auth[_0xff8a('0x9')](),controller[_0xff8a('0xf')]);router[_0xff8a('0x10')](_0xff8a('0xe'),auth['isAuthenticated'](),controller[_0xff8a('0x11')]);module[_0xff8a('0x12')]=router;