b68e4c6404f17187ba6f4ec2961583cf0b1a337c
[motion2.git] / server / api / voiceContext / 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 _0x46a9=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','/:id','isAuthenticated','show','delete','exports','multer','util','connect-timeout','express'];(function(_0x37186e,_0x32adfe){var _0x510a4d=function(_0x245449){while(--_0x245449){_0x37186e['push'](_0x37186e['shift']());}};_0x510a4d(++_0x32adfe);}(_0x46a9,0x65));var _0x946a=function(_0x3035bc,_0x2a43ee){_0x3035bc=_0x3035bc-0x0;var _0x4549e7=_0x46a9[_0x3035bc];return _0x4549e7;};'use strict';var multer=require(_0x946a('0x0'));var util=require(_0x946a('0x1'));var path=require('path');var timeout=require(_0x946a('0x2'));var express=require(_0x946a('0x3'));var router=express[_0x946a('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x946a('0x5'));var interaction=require(_0x946a('0x6'));var config=require(_0x946a('0x7'));var controller=require(_0x946a('0x8'));router[_0x946a('0x9')]('/',auth['isAuthenticated'](),controller['index']);router[_0x946a('0x9')](_0x946a('0xa'),auth[_0x946a('0xb')](),controller[_0x946a('0xc')]);router['post']('/',auth[_0x946a('0xb')](),controller['create']);router['put'](_0x946a('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x946a('0xd')]('/:id',auth[_0x946a('0xb')](),controller['destroy']);module[_0x946a('0xe')]=router;