5fd8c73401887fa8324b27aa995a84b21c1d019f
[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 _0x185b=['put','update','delete','destroy','util','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','/:id','show','post','create'];(function(_0x24259d,_0x64a194){var _0x5a701=function(_0x204516){while(--_0x204516){_0x24259d['push'](_0x24259d['shift']());}};_0x5a701(++_0x64a194);}(_0x185b,0x84));var _0xb185=function(_0x5d6456,_0x58ecc7){_0x5d6456=_0x5d6456-0x0;var _0x4d66c1=_0x185b[_0x5d6456];return _0x4d66c1;};'use strict';var multer=require('multer');var util=require(_0xb185('0x0'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xb185('0x1')]();var fs_extra=require('fs-extra');var auth=require(_0xb185('0x2'));var interaction=require(_0xb185('0x3'));var config=require(_0xb185('0x4'));var controller=require(_0xb185('0x5'));router[_0xb185('0x6')]('/',auth[_0xb185('0x7')](),controller['index']);router[_0xb185('0x6')](_0xb185('0x8'),auth[_0xb185('0x7')](),controller[_0xb185('0x9')]);router[_0xb185('0xa')]('/',auth['isAuthenticated'](),controller[_0xb185('0xb')]);router[_0xb185('0xc')](_0xb185('0x8'),auth['isAuthenticated'](),controller[_0xb185('0xd')]);router[_0xb185('0xe')]('/:id',auth['isAuthenticated'](),controller[_0xb185('0xf')]);module['exports']=router;