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 _0x882a=['connect-timeout','Router','fs-extra','../../config/environment','./pause.controller','get','isAuthenticated','index','/:id','show','post','put','update','delete','exports','util'];(function(_0x48566f,_0x3dd865){var _0x299b50=function(_0x37d8cc){while(--_0x37d8cc){_0x48566f['push'](_0x48566f['shift']());}};_0x299b50(++_0x3dd865);}(_0x882a,0xbf));var _0xa882=function(_0x38d6cc,_0x2d354f){_0x38d6cc=_0x38d6cc-0x0;var _0x319f69=_0x882a[_0x38d6cc];return _0x319f69;};'use strict';var multer=require('multer');var util=require(_0xa882('0x0'));var path=require('path');var timeout=require(_0xa882('0x1'));var express=require('express');var router=express[_0xa882('0x2')]();var fs_extra=require(_0xa882('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xa882('0x4'));var controller=require(_0xa882('0x5'));router[_0xa882('0x6')]('/',auth[_0xa882('0x7')](),controller[_0xa882('0x8')]);router[_0xa882('0x6')](_0xa882('0x9'),auth['isAuthenticated'](),controller[_0xa882('0xa')]);router[_0xa882('0xb')]('/',auth[_0xa882('0x7')](),controller['create']);router[_0xa882('0xc')]('/:id',auth[_0xa882('0x7')](),controller[_0xa882('0xd')]);router[_0xa882('0xe')](_0xa882('0x9'),auth[_0xa882('0x7')](),controller['destroy']);module[_0xa882('0xf')]=router;