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 _0x2f9f=['put','update','delete','destroy','util','path','connect-timeout','express','Router','../../components/interaction/service','./pause.controller','get','isAuthenticated','/:id','show','post'];(function(_0x43236e,_0x430223){var _0x568711=function(_0x1d6697){while(--_0x1d6697){_0x43236e['push'](_0x43236e['shift']());}};_0x568711(++_0x430223);}(_0x2f9f,0xc4));var _0xf2f9=function(_0x32dfdb,_0x5b9400){_0x32dfdb=_0x32dfdb-0x0;var _0xec9630=_0x2f9f[_0x32dfdb];return _0xec9630;};'use strict';var multer=require('multer');var util=require(_0xf2f9('0x0'));var path=require(_0xf2f9('0x1'));var timeout=require(_0xf2f9('0x2'));var express=require(_0xf2f9('0x3'));var router=express[_0xf2f9('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xf2f9('0x5'));var config=require('../../config/environment');var controller=require(_0xf2f9('0x6'));router[_0xf2f9('0x7')]('/',auth[_0xf2f9('0x8')](),controller['index']);router['get'](_0xf2f9('0x9'),auth[_0xf2f9('0x8')](),controller[_0xf2f9('0xa')]);router[_0xf2f9('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0xf2f9('0xc')]('/:id',auth['isAuthenticated'](),controller[_0xf2f9('0xd')]);router[_0xf2f9('0xe')](_0xf2f9('0x9'),auth['isAuthenticated'](),controller[_0xf2f9('0xf')]);module['exports']=router;