Built motion from commit 47436d59.|2.6.7
[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 _0x2fcb=['/:id','isAuthenticated','show','create','put','delete','destroy','exports','multer','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../config/environment','./voiceChanSpy.controller','get','index'];(function(_0xccd7fe,_0x5c8811){var _0x3d2d5d=function(_0x2a947d){while(--_0x2a947d){_0xccd7fe['push'](_0xccd7fe['shift']());}};_0x3d2d5d(++_0x5c8811);}(_0x2fcb,0x14b));var _0xb2fc=function(_0x3e36ec,_0x298e34){_0x3e36ec=_0x3e36ec-0x0;var _0x3bb54a=_0x2fcb[_0x3e36ec];return _0x3bb54a;};'use strict';var multer=require(_0xb2fc('0x0'));var util=require('util');var path=require(_0xb2fc('0x1'));var timeout=require(_0xb2fc('0x2'));var express=require(_0xb2fc('0x3'));var router=express[_0xb2fc('0x4')]();var fs_extra=require(_0xb2fc('0x5'));var auth=require(_0xb2fc('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xb2fc('0x7'));var controller=require(_0xb2fc('0x8'));router[_0xb2fc('0x9')]('/',auth['isAuthenticated'](),controller[_0xb2fc('0xa')]);router['get'](_0xb2fc('0xb'),auth[_0xb2fc('0xc')](),controller[_0xb2fc('0xd')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb2fc('0xe')]);router[_0xb2fc('0xf')](_0xb2fc('0xb'),auth[_0xb2fc('0xc')](),controller['update']);router[_0xb2fc('0x10')]('/:id',auth[_0xb2fc('0xc')](),controller[_0xb2fc('0x11')]);module[_0xb2fc('0x12')]=router;