Built motion from commit 639a1a7f.|2.6.19
[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 _0x5712=['path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceChanSpy.controller','get','isAuthenticated','index','/:id','show','post','create','multer'];(function(_0x19fb04,_0xa2a0a1){var _0x2f80d8=function(_0x166cae){while(--_0x166cae){_0x19fb04['push'](_0x19fb04['shift']());}};_0x2f80d8(++_0xa2a0a1);}(_0x5712,0x13a));var _0x2571=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x5712[_0x3bf83f];return _0x22c4a9;};'use strict';var multer=require(_0x2571('0x0'));var util=require('util');var path=require(_0x2571('0x1'));var timeout=require('connect-timeout');var express=require(_0x2571('0x2'));var router=express[_0x2571('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0x2571('0x4'));var interaction=require(_0x2571('0x5'));var config=require(_0x2571('0x6'));var controller=require(_0x2571('0x7'));router[_0x2571('0x8')]('/',auth[_0x2571('0x9')](),controller[_0x2571('0xa')]);router[_0x2571('0x8')](_0x2571('0xb'),auth[_0x2571('0x9')](),controller[_0x2571('0xc')]);router[_0x2571('0xd')]('/',auth[_0x2571('0x9')](),controller[_0x2571('0xe')]);router['put'](_0x2571('0xb'),auth[_0x2571('0x9')](),controller['update']);router['delete'](_0x2571('0xb'),auth['isAuthenticated'](),controller['destroy']);module['exports']=router;