Built motion from commit 1fa89557.|2.6.10
[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 _0xb68b=['fs-extra','../../components/interaction/service','../../config/environment','./voiceChanSpy.controller','get','isAuthenticated','index','/:id','post','create','update','delete','exports','multer','util','path','connect-timeout','express'];(function(_0x5b697e,_0x10afa9){var _0x47d808=function(_0x153d0f){while(--_0x153d0f){_0x5b697e['push'](_0x5b697e['shift']());}};_0x47d808(++_0x10afa9);}(_0xb68b,0x12d));var _0xbb68=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0xb68b[_0x321bb2];return _0x9c12ed;};'use strict';var multer=require(_0xbb68('0x0'));var util=require(_0xbb68('0x1'));var path=require(_0xbb68('0x2'));var timeout=require(_0xbb68('0x3'));var express=require(_0xbb68('0x4'));var router=express['Router']();var fs_extra=require(_0xbb68('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xbb68('0x6'));var config=require(_0xbb68('0x7'));var controller=require(_0xbb68('0x8'));router[_0xbb68('0x9')]('/',auth[_0xbb68('0xa')](),controller[_0xbb68('0xb')]);router[_0xbb68('0x9')](_0xbb68('0xc'),auth['isAuthenticated'](),controller['show']);router[_0xbb68('0xd')]('/',auth[_0xbb68('0xa')](),controller[_0xbb68('0xe')]);router['put']('/:id',auth['isAuthenticated'](),controller[_0xbb68('0xf')]);router[_0xbb68('0x10')](_0xbb68('0xc'),auth[_0xbb68('0xa')](),controller['destroy']);module[_0xbb68('0x11')]=router;