Built motion from commit (unavailable).|2.0.71
[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 _0xcacb=['destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id','put','update','delete'];(function(_0xedb647,_0x2c08bb){var _0x122bde=function(_0x2573d5){while(--_0x2573d5){_0xedb647['push'](_0xedb647['shift']());}};_0x122bde(++_0x2c08bb);}(_0xcacb,0x72));var _0xbcac=function(_0x559948,_0x5d7a75){_0x559948=_0x559948-0x0;var _0x4fc8d5=_0xcacb[_0x559948];return _0x4fc8d5;};'use strict';var multer=require(_0xbcac('0x0'));var util=require(_0xbcac('0x1'));var path=require(_0xbcac('0x2'));var express=require(_0xbcac('0x3'));var router=express[_0xbcac('0x4')]();var auth=require(_0xbcac('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xbcac('0x6'));var controller=require('./voiceChanSpy.controller');router[_0xbcac('0x7')]('/',auth[_0xbcac('0x8')](),controller[_0xbcac('0x9')]);router['get'](_0xbcac('0xa'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth[_0xbcac('0x8')](),controller['create']);router[_0xbcac('0xb')](_0xbcac('0xa'),auth['isAuthenticated'](),controller[_0xbcac('0xc')]);router[_0xbcac('0xd')](_0xbcac('0xa'),auth['isAuthenticated'](),controller[_0xbcac('0xe')]);module[_0xbcac('0xf')]=router;