Built motion from commit 19a84241.|2.5.34
[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 _0x22fa=['../../components/interaction/service','../../config/environment','./voiceContext.controller','get','index','/:id','isAuthenticated','post','put','update','delete','destroy','exports','multer','util','connect-timeout','express','fs-extra'];(function(_0x225f50,_0x48a77d){var _0x19d003=function(_0x58965d){while(--_0x58965d){_0x225f50['push'](_0x225f50['shift']());}};_0x19d003(++_0x48a77d);}(_0x22fa,0x12d));var _0xa22f=function(_0x1378cd,_0xf6495f){_0x1378cd=_0x1378cd-0x0;var _0x5c1496=_0x22fa[_0x1378cd];return _0x5c1496;};'use strict';var multer=require(_0xa22f('0x0'));var util=require(_0xa22f('0x1'));var path=require('path');var timeout=require(_0xa22f('0x2'));var express=require(_0xa22f('0x3'));var router=express['Router']();var fs_extra=require(_0xa22f('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xa22f('0x5'));var config=require(_0xa22f('0x6'));var controller=require(_0xa22f('0x7'));router[_0xa22f('0x8')]('/',auth['isAuthenticated'](),controller[_0xa22f('0x9')]);router[_0xa22f('0x8')](_0xa22f('0xa'),auth[_0xa22f('0xb')](),controller['show']);router[_0xa22f('0xc')]('/',auth['isAuthenticated'](),controller['create']);router[_0xa22f('0xd')](_0xa22f('0xa'),auth[_0xa22f('0xb')](),controller[_0xa22f('0xe')]);router[_0xa22f('0xf')]('/:id',auth[_0xa22f('0xb')](),controller[_0xa22f('0x10')]);module[_0xa22f('0x11')]=router;