Built motion from commit (unavailable).|2.4.19
[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 _0xe817=['post','update','delete','destroy','exports','multer','util','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','index','/:id','isAuthenticated','show'];(function(_0x187283,_0x4246d2){var _0x4aca7f=function(_0x44b8e1){while(--_0x44b8e1){_0x187283['push'](_0x187283['shift']());}};_0x4aca7f(++_0x4246d2);}(_0xe817,0x115));var _0x7e81=function(_0xe6a8f2,_0x130c21){_0xe6a8f2=_0xe6a8f2-0x0;var _0x3d349b=_0xe817[_0xe6a8f2];return _0x3d349b;};'use strict';var multer=require(_0x7e81('0x0'));var util=require(_0x7e81('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x7e81('0x2'));var interaction=require(_0x7e81('0x3'));var config=require(_0x7e81('0x4'));var controller=require(_0x7e81('0x5'));router[_0x7e81('0x6')]('/',auth['isAuthenticated'](),controller[_0x7e81('0x7')]);router[_0x7e81('0x6')](_0x7e81('0x8'),auth[_0x7e81('0x9')](),controller[_0x7e81('0xa')]);router[_0x7e81('0xb')]('/',auth[_0x7e81('0x9')](),controller['create']);router['put'](_0x7e81('0x8'),auth[_0x7e81('0x9')](),controller[_0x7e81('0xc')]);router[_0x7e81('0xd')](_0x7e81('0x8'),auth['isAuthenticated'](),controller[_0x7e81('0xe')]);module[_0x7e81('0xf')]=router;