Built motion from commit 9d7072cc.|2.5.39
[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 _0x301e=['/:id','isAuthenticated','show','post','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','index'];(function(_0x2b1fe5,_0x2968e2){var _0x5eb2af=function(_0x454752){while(--_0x454752){_0x2b1fe5['push'](_0x2b1fe5['shift']());}};_0x5eb2af(++_0x2968e2);}(_0x301e,0x100));var _0xe301=function(_0x22dc9a,_0x3d2849){_0x22dc9a=_0x22dc9a-0x0;var _0x4154c4=_0x301e[_0x22dc9a];return _0x4154c4;};'use strict';var multer=require(_0xe301('0x0'));var util=require(_0xe301('0x1'));var path=require(_0xe301('0x2'));var timeout=require(_0xe301('0x3'));var express=require(_0xe301('0x4'));var router=express[_0xe301('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0xe301('0x6'));var interaction=require(_0xe301('0x7'));var config=require('../../config/environment');var controller=require('./voiceChanSpy.controller');router[_0xe301('0x8')]('/',auth['isAuthenticated'](),controller[_0xe301('0x9')]);router[_0xe301('0x8')](_0xe301('0xa'),auth[_0xe301('0xb')](),controller[_0xe301('0xc')]);router[_0xe301('0xd')]('/',auth[_0xe301('0xb')](),controller['create']);router[_0xe301('0xe')](_0xe301('0xa'),auth['isAuthenticated'](),controller[_0xe301('0xf')]);router[_0xe301('0x10')](_0xe301('0xa'),auth['isAuthenticated'](),controller[_0xe301('0x11')]);module[_0xe301('0x12')]=router;