3e54f0b3e2c7af0730c6e5d87d61a1773ab57312
[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 _0x7668=['create','put','update','delete','destroy','exports','multer','path','connect-timeout','express','Router','../../components/auth/service','./voiceChanSpy.controller','isAuthenticated','index','get','/:id','show'];(function(_0x1411f9,_0x3985d0){var _0x59ac14=function(_0x2361ce){while(--_0x2361ce){_0x1411f9['push'](_0x1411f9['shift']());}};_0x59ac14(++_0x3985d0);}(_0x7668,0x1ec));var _0x8766=function(_0x5e1e6e,_0x2d0556){_0x5e1e6e=_0x5e1e6e-0x0;var _0x3a9908=_0x7668[_0x5e1e6e];return _0x3a9908;};'use strict';var multer=require(_0x8766('0x0'));var util=require('util');var path=require(_0x8766('0x1'));var timeout=require(_0x8766('0x2'));var express=require(_0x8766('0x3'));var router=express[_0x8766('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x8766('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x8766('0x6'));router['get']('/',auth[_0x8766('0x7')](),controller[_0x8766('0x8')]);router[_0x8766('0x9')](_0x8766('0xa'),auth[_0x8766('0x7')](),controller[_0x8766('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0x8766('0xc')]);router[_0x8766('0xd')](_0x8766('0xa'),auth[_0x8766('0x7')](),controller[_0x8766('0xe')]);router[_0x8766('0xf')](_0x8766('0xa'),auth[_0x8766('0x7')](),controller[_0x8766('0x10')]);module[_0x8766('0x11')]=router;