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 _0x174a=['destroy','util','connect-timeout','Router','fs-extra','../../components/auth/service','../../config/environment','./voiceContext.controller','get','isAuthenticated','index','/:id','show','post','create','update'];(function(_0x39e035,_0x1935e1){var _0x434c89=function(_0x30f321){while(--_0x30f321){_0x39e035['push'](_0x39e035['shift']());}};_0x434c89(++_0x1935e1);}(_0x174a,0xb1));var _0xa174=function(_0x11fc6f,_0x5d595c){_0x11fc6f=_0x11fc6f-0x0;var _0x336d53=_0x174a[_0x11fc6f];return _0x336d53;};'use strict';var multer=require('multer');var util=require(_0xa174('0x0'));var path=require('path');var timeout=require(_0xa174('0x1'));var express=require('express');var router=express[_0xa174('0x2')]();var fs_extra=require(_0xa174('0x3'));var auth=require(_0xa174('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0xa174('0x5'));var controller=require(_0xa174('0x6'));router[_0xa174('0x7')]('/',auth[_0xa174('0x8')](),controller[_0xa174('0x9')]);router[_0xa174('0x7')](_0xa174('0xa'),auth[_0xa174('0x8')](),controller[_0xa174('0xb')]);router[_0xa174('0xc')]('/',auth['isAuthenticated'](),controller[_0xa174('0xd')]);router['put'](_0xa174('0xa'),auth[_0xa174('0x8')](),controller[_0xa174('0xe')]);router['delete'](_0xa174('0xa'),auth[_0xa174('0x8')](),controller[_0xa174('0xf')]);module['exports']=router;