6d78a846e834404b9efa4d1b71206caecb1c0f9d
[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 _0xe156=['connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','post','create','delete','destroy','exports','util','path'];(function(_0x4a836d,_0x12820c){var _0x119a58=function(_0x1f61a2){while(--_0x1f61a2){_0x4a836d['push'](_0x4a836d['shift']());}};_0x119a58(++_0x12820c);}(_0xe156,0x8e));var _0x6e15=function(_0x485f35,_0x45a0fc){_0x485f35=_0x485f35-0x0;var _0x2ad118=_0xe156[_0x485f35];return _0x2ad118;};'use strict';var multer=require('multer');var util=require(_0x6e15('0x0'));var path=require(_0x6e15('0x1'));var timeout=require(_0x6e15('0x2'));var express=require('express');var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x6e15('0x3'));var interaction=require(_0x6e15('0x4'));var config=require(_0x6e15('0x5'));var controller=require(_0x6e15('0x6'));router[_0x6e15('0x7')]('/',auth[_0x6e15('0x8')](),controller[_0x6e15('0x9')]);router[_0x6e15('0x7')](_0x6e15('0xa'),auth[_0x6e15('0x8')](),controller['show']);router[_0x6e15('0xb')]('/',auth[_0x6e15('0x8')](),controller[_0x6e15('0xc')]);router['put'](_0x6e15('0xa'),auth['isAuthenticated'](),controller['update']);router[_0x6e15('0xd')]('/:id',auth[_0x6e15('0x8')](),controller[_0x6e15('0xe')]);module[_0x6e15('0xf')]=router;