Built motion from commit 449495f6.|2.6.27
[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 _0xf2ff=['post','create','update','delete','destroy','exports','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./voiceChanSpy.controller','get','isAuthenticated','index','/:id','show'];(function(_0x3bcb39,_0x2e1bd0){var _0x158bc4=function(_0x5570d3){while(--_0x5570d3){_0x3bcb39['push'](_0x3bcb39['shift']());}};_0x158bc4(++_0x2e1bd0);}(_0xf2ff,0x1ec));var _0xff2f=function(_0x3ac16a,_0x52def3){_0x3ac16a=_0x3ac16a-0x0;var _0x457623=_0xf2ff[_0x3ac16a];return _0x457623;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xff2f('0x0'));var timeout=require('connect-timeout');var express=require(_0xff2f('0x1'));var router=express[_0xff2f('0x2')]();var fs_extra=require(_0xff2f('0x3'));var auth=require(_0xff2f('0x4'));var interaction=require(_0xff2f('0x5'));var config=require('../../config/environment');var controller=require(_0xff2f('0x6'));router[_0xff2f('0x7')]('/',auth[_0xff2f('0x8')](),controller[_0xff2f('0x9')]);router[_0xff2f('0x7')](_0xff2f('0xa'),auth['isAuthenticated'](),controller[_0xff2f('0xb')]);router[_0xff2f('0xc')]('/',auth[_0xff2f('0x8')](),controller[_0xff2f('0xd')]);router['put'](_0xff2f('0xa'),auth[_0xff2f('0x8')](),controller[_0xff2f('0xe')]);router[_0xff2f('0xf')](_0xff2f('0xa'),auth[_0xff2f('0x8')](),controller[_0xff2f('0x10')]);module[_0xff2f('0x11')]=router;