Built motion from commit (unavailable).|2.5.18
[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 _0x53f5=['create','delete','exports','multer','util','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show'];(function(_0x319784,_0x47e6d4){var _0x1917da=function(_0x2cb921){while(--_0x2cb921){_0x319784['push'](_0x319784['shift']());}};_0x1917da(++_0x47e6d4);}(_0x53f5,0x198));var _0x553f=function(_0x123e78,_0x5a9aee){_0x123e78=_0x123e78-0x0;var _0x1fb8b4=_0x53f5[_0x123e78];return _0x1fb8b4;};'use strict';var multer=require(_0x553f('0x0'));var util=require(_0x553f('0x1'));var path=require('path');var timeout=require(_0x553f('0x2'));var express=require(_0x553f('0x3'));var router=express['Router']();var auth=require(_0x553f('0x4'));var interaction=require(_0x553f('0x5'));var config=require(_0x553f('0x6'));var controller=require('./voiceChanSpy.controller');router[_0x553f('0x7')]('/',auth[_0x553f('0x8')](),controller[_0x553f('0x9')]);router[_0x553f('0x7')](_0x553f('0xa'),auth[_0x553f('0x8')](),controller[_0x553f('0xb')]);router['post']('/',auth[_0x553f('0x8')](),controller[_0x553f('0xc')]);router['put']('/:id',auth[_0x553f('0x8')](),controller['update']);router[_0x553f('0xd')](_0x553f('0xa'),auth[_0x553f('0x8')](),controller['destroy']);module[_0x553f('0xe')]=router;