1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x0db2=['isAuthenticated','index','/:id','show','post','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./voiceContext.controller','get'];(function(_0xc6be3a,_0x540e05){var _0x56a310=function(_0x50a144){while(--_0x50a144){_0xc6be3a['push'](_0xc6be3a['shift']());}};_0x56a310(++_0x540e05);}(_0x0db2,0xf0));var _0x20db=function(_0x136d0d,_0xb32efc){_0x136d0d=_0x136d0d-0x0;var _0x5bbaff=_0x0db2[_0x136d0d];return _0x5bbaff;};'use strict';var multer=require(_0x20db('0x0'));var util=require(_0x20db('0x1'));var path=require(_0x20db('0x2'));var timeout=require(_0x20db('0x3'));var express=require(_0x20db('0x4'));var router=express[_0x20db('0x5')]();var fs_extra=require(_0x20db('0x6'));var auth=require(_0x20db('0x7'));var interaction=require(_0x20db('0x8'));var config=require(_0x20db('0x9'));var controller=require(_0x20db('0xa'));router[_0x20db('0xb')]('/',auth[_0x20db('0xc')](),controller[_0x20db('0xd')]);router['get'](_0x20db('0xe'),auth['isAuthenticated'](),controller[_0x20db('0xf')]);router[_0x20db('0x10')]('/',auth[_0x20db('0xc')](),controller['create']);router['put'](_0x20db('0xe'),auth['isAuthenticated'](),controller[_0x20db('0x11')]);router[_0x20db('0x12')]('/:id',auth[_0x20db('0xc')](),controller[_0x20db('0x13')]);module[_0x20db('0x14')]=router;