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 _0x565f=['exports','multer','util','path','../../components/auth/service','../../components/interaction/service','../../config/environment','./pause.controller','isAuthenticated','get','/:id','create','update','delete','destroy'];(function(_0x4f6b91,_0x55e16c){var _0x100a81=function(_0x31db77){while(--_0x31db77){_0x4f6b91['push'](_0x4f6b91['shift']());}};_0x100a81(++_0x55e16c);}(_0x565f,0x1a5));var _0xf565=function(_0x433de2,_0x324655){_0x433de2=_0x433de2-0x0;var _0x3379a2=_0x565f[_0x433de2];return _0x3379a2;};'use strict';var multer=require(_0xf565('0x0'));var util=require(_0xf565('0x1'));var path=require(_0xf565('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0xf565('0x3'));var interaction=require(_0xf565('0x4'));var config=require(_0xf565('0x5'));var controller=require(_0xf565('0x6'));router['get']('/',auth[_0xf565('0x7')](),controller['index']);router[_0xf565('0x8')](_0xf565('0x9'),auth[_0xf565('0x7')](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0xf565('0xa')]);router['put'](_0xf565('0x9'),auth['isAuthenticated'](),controller[_0xf565('0xb')]);router[_0xf565('0xc')](_0xf565('0x9'),auth[_0xf565('0x7')](),controller[_0xf565('0xd')]);module[_0xf565('0xe')]=router;