482f3dba85af01551a3f82fe0d45f0206b73993e
[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 _0x7f83=['../../config/environment','./voiceChanSpy.controller','get','isAuthenticated','index','/:id','show','post','update','delete','exports','multer','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x441f7a,_0x576321){var _0x4821da=function(_0x5c5b52){while(--_0x5c5b52){_0x441f7a['push'](_0x441f7a['shift']());}};_0x4821da(++_0x576321);}(_0x7f83,0x9b));var _0x37f8=function(_0x34279d,_0x4e186c){_0x34279d=_0x34279d-0x0;var _0x42c5f4=_0x7f83[_0x34279d];return _0x42c5f4;};'use strict';var multer=require(_0x37f8('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require(_0x37f8('0x1'));var router=express[_0x37f8('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x37f8('0x3'));var interaction=require(_0x37f8('0x4'));var config=require(_0x37f8('0x5'));var controller=require(_0x37f8('0x6'));router[_0x37f8('0x7')]('/',auth[_0x37f8('0x8')](),controller[_0x37f8('0x9')]);router[_0x37f8('0x7')](_0x37f8('0xa'),auth[_0x37f8('0x8')](),controller[_0x37f8('0xb')]);router[_0x37f8('0xc')]('/',auth['isAuthenticated'](),controller['create']);router['put']('/:id',auth[_0x37f8('0x8')](),controller[_0x37f8('0xd')]);router[_0x37f8('0xe')](_0x37f8('0xa'),auth[_0x37f8('0x8')](),controller['destroy']);module[_0x37f8('0xf')]=router;