Built motion from commit f7863d46.|2.5.41
[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 _0xa031=['post','put','/:id','delete','destroy','exports','util','express','Router','fs-extra','../../components/auth/service','./voiceChanSpy.controller','get','isAuthenticated','index','show'];(function(_0x44e61a,_0xfbd0a2){var _0x5c4e32=function(_0x3e6750){while(--_0x3e6750){_0x44e61a['push'](_0x44e61a['shift']());}};_0x5c4e32(++_0xfbd0a2);}(_0xa031,0x1b6));var _0x1a03=function(_0x31c5ec,_0x783ace){_0x31c5ec=_0x31c5ec-0x0;var _0x1deda2=_0xa031[_0x31c5ec];return _0x1deda2;};'use strict';var multer=require('multer');var util=require(_0x1a03('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x1a03('0x1'));var router=express[_0x1a03('0x2')]();var fs_extra=require(_0x1a03('0x3'));var auth=require(_0x1a03('0x4'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x1a03('0x5'));router[_0x1a03('0x6')]('/',auth[_0x1a03('0x7')](),controller[_0x1a03('0x8')]);router[_0x1a03('0x6')]('/:id',auth[_0x1a03('0x7')](),controller[_0x1a03('0x9')]);router[_0x1a03('0xa')]('/',auth['isAuthenticated'](),controller['create']);router[_0x1a03('0xb')](_0x1a03('0xc'),auth[_0x1a03('0x7')](),controller['update']);router[_0x1a03('0xd')](_0x1a03('0xc'),auth[_0x1a03('0x7')](),controller[_0x1a03('0xe')]);module[_0x1a03('0xf')]=router;