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 _0x9f42=['update','delete','exports','multer','util','path','connect-timeout','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./pause.controller','get','isAuthenticated','index','show','post','create','put','/:id'];(function(_0x118f85,_0x587a2f){var _0x4a5f17=function(_0xaf3f3f){while(--_0xaf3f3f){_0x118f85['push'](_0x118f85['shift']());}};_0x4a5f17(++_0x587a2f);}(_0x9f42,0x157));var _0x29f4=function(_0x50132e,_0x24f8fc){_0x50132e=_0x50132e-0x0;var _0x4d1246=_0x9f42[_0x50132e];return _0x4d1246;};'use strict';var multer=require(_0x29f4('0x0'));var util=require(_0x29f4('0x1'));var path=require(_0x29f4('0x2'));var timeout=require(_0x29f4('0x3'));var express=require('express');var router=express[_0x29f4('0x4')]();var auth=require(_0x29f4('0x5'));var interaction=require(_0x29f4('0x6'));var config=require(_0x29f4('0x7'));var controller=require(_0x29f4('0x8'));router[_0x29f4('0x9')]('/',auth[_0x29f4('0xa')](),controller[_0x29f4('0xb')]);router['get']('/:id',auth[_0x29f4('0xa')](),controller[_0x29f4('0xc')]);router[_0x29f4('0xd')]('/',auth['isAuthenticated'](),controller[_0x29f4('0xe')]);router[_0x29f4('0xf')](_0x29f4('0x10'),auth['isAuthenticated'](),controller[_0x29f4('0x11')]);router[_0x29f4('0x12')]('/:id',auth[_0x29f4('0xa')](),controller['destroy']);module[_0x29f4('0x13')]=router;