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 _0x26ed=['destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service','../../config/environment','./pause.controller','isAuthenticated','get','/:id','show','post','delete'];(function(_0x4b369d,_0x265eb8){var _0x571a98=function(_0x56341a){while(--_0x56341a){_0x4b369d['push'](_0x4b369d['shift']());}};_0x571a98(++_0x265eb8);}(_0x26ed,0x1c2));var _0xd26e=function(_0x25ccbe,_0xc935c0){_0x25ccbe=_0x25ccbe-0x0;var _0x289529=_0x26ed[_0x25ccbe];return _0x289529;};'use strict';var multer=require(_0xd26e('0x0'));var util=require(_0xd26e('0x1'));var path=require(_0xd26e('0x2'));var timeout=require(_0xd26e('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0xd26e('0x4'));var interaction=require(_0xd26e('0x5'));var config=require(_0xd26e('0x6'));var controller=require(_0xd26e('0x7'));router['get']('/',auth[_0xd26e('0x8')](),controller['index']);router[_0xd26e('0x9')](_0xd26e('0xa'),auth[_0xd26e('0x8')](),controller[_0xd26e('0xb')]);router[_0xd26e('0xc')]('/',auth[_0xd26e('0x8')](),controller['create']);router['put'](_0xd26e('0xa'),auth[_0xd26e('0x8')](),controller['update']);router[_0xd26e('0xd')](_0xd26e('0xa'),auth['isAuthenticated'](),controller[_0xd26e('0xe')]);module[_0xd26e('0xf')]=router;