Built motion from commit b0a9a629.|2.6.33
[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 _0x440b=['../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','post','create','put','update','delete','destroy','exports','multer','util','express','Router','fs-extra','../../components/auth/service'];(function(_0x165d9c,_0x3f6448){var _0x3c29f4=function(_0x5785a8){while(--_0x5785a8){_0x165d9c['push'](_0x165d9c['shift']());}};_0x3c29f4(++_0x3f6448);}(_0x440b,0x19c));var _0xb440=function(_0x24516c,_0x59fcd8){_0x24516c=_0x24516c-0x0;var _0xaf2987=_0x440b[_0x24516c];return _0xaf2987;};'use strict';var multer=require(_0xb440('0x0'));var util=require(_0xb440('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xb440('0x2'));var router=express[_0xb440('0x3')]();var fs_extra=require(_0xb440('0x4'));var auth=require(_0xb440('0x5'));var interaction=require(_0xb440('0x6'));var config=require(_0xb440('0x7'));var controller=require('./voiceContext.controller');router[_0xb440('0x8')]('/',auth[_0xb440('0x9')](),controller[_0xb440('0xa')]);router['get'](_0xb440('0xb'),auth[_0xb440('0x9')](),controller['show']);router[_0xb440('0xc')]('/',auth['isAuthenticated'](),controller[_0xb440('0xd')]);router[_0xb440('0xe')](_0xb440('0xb'),auth[_0xb440('0x9')](),controller[_0xb440('0xf')]);router[_0xb440('0x10')](_0xb440('0xb'),auth[_0xb440('0x9')](),controller[_0xb440('0x11')]);module[_0xb440('0x12')]=router;