983b32bd9fe4fff3bfffbcb633bc3f782a21c341
[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 _0xbeba=['show','post','create','put','update','destroy','exports','multer','express','fs-extra','./voiceChanSpy.controller','isAuthenticated','index','/:id'];(function(_0x42d7ec,_0x402a64){var _0x54399d=function(_0x51c311){while(--_0x51c311){_0x42d7ec['push'](_0x42d7ec['shift']());}};_0x54399d(++_0x402a64);}(_0xbeba,0x173));var _0xabeb=function(_0x251eb2,_0x4a2839){_0x251eb2=_0x251eb2-0x0;var _0xc59a6a=_0xbeba[_0x251eb2];return _0xc59a6a;};'use strict';var multer=require(_0xabeb('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0xabeb('0x1'));var router=express['Router']();var fs_extra=require(_0xabeb('0x2'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0xabeb('0x3'));router['get']('/',auth[_0xabeb('0x4')](),controller[_0xabeb('0x5')]);router['get'](_0xabeb('0x6'),auth[_0xabeb('0x4')](),controller[_0xabeb('0x7')]);router[_0xabeb('0x8')]('/',auth[_0xabeb('0x4')](),controller[_0xabeb('0x9')]);router[_0xabeb('0xa')](_0xabeb('0x6'),auth[_0xabeb('0x4')](),controller[_0xabeb('0xb')]);router['delete']('/:id',auth[_0xabeb('0x4')](),controller[_0xabeb('0xc')]);module[_0xabeb('0xd')]=router;