3377be8031358661b4d7803efea21e978d51a0aa
[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 _0xacc9=['util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get','index','/:id','create','put','isAuthenticated','update','delete','exports','multer'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xacc9,0x10f));var _0x9acc=function(_0x4cc77c,_0x9274ab){_0x4cc77c=_0x4cc77c-0x0;var _0x59a6c0=_0xacc9[_0x4cc77c];return _0x59a6c0;};'use strict';var multer=require(_0x9acc('0x0'));var util=require(_0x9acc('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x9acc('0x2'));var router=express[_0x9acc('0x3')]();var auth=require(_0x9acc('0x4'));var interaction=require(_0x9acc('0x5'));var config=require(_0x9acc('0x6'));var controller=require(_0x9acc('0x7'));router[_0x9acc('0x8')]('/',auth['isAuthenticated'](),controller[_0x9acc('0x9')]);router[_0x9acc('0x8')](_0x9acc('0xa'),auth['isAuthenticated'](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x9acc('0xb')]);router[_0x9acc('0xc')](_0x9acc('0xa'),auth[_0x9acc('0xd')](),controller[_0x9acc('0xe')]);router[_0x9acc('0xf')](_0x9acc('0xa'),auth[_0x9acc('0xd')](),controller['destroy']);module[_0x9acc('0x10')]=router;