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 _0x5421=['express','Router','../../components/auth/service','../../config/environment','./pause.controller','isAuthenticated','/:id','show','post','put','update','delete','destroy','util','path','connect-timeout'];(function(_0x3b3aca,_0x5e03f8){var _0x12ad5c=function(_0x55bab5){while(--_0x55bab5){_0x3b3aca['push'](_0x3b3aca['shift']());}};_0x12ad5c(++_0x5e03f8);}(_0x5421,0x1ed));var _0x1542=function(_0x15b33d,_0x3a17b0){_0x15b33d=_0x15b33d-0x0;var _0x3b09b6=_0x5421[_0x15b33d];return _0x3b09b6;};'use strict';var multer=require('multer');var util=require(_0x1542('0x0'));var path=require(_0x1542('0x1'));var timeout=require(_0x1542('0x2'));var express=require(_0x1542('0x3'));var router=express[_0x1542('0x4')]();var auth=require(_0x1542('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0x1542('0x6'));var controller=require(_0x1542('0x7'));router['get']('/',auth[_0x1542('0x8')](),controller['index']);router['get'](_0x1542('0x9'),auth['isAuthenticated'](),controller[_0x1542('0xa')]);router[_0x1542('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0x1542('0xc')]('/:id',auth[_0x1542('0x8')](),controller[_0x1542('0xd')]);router[_0x1542('0xe')](_0x1542('0x9'),auth['isAuthenticated'](),controller[_0x1542('0xf')]);module['exports']=router;