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 _0xe9a9=['./pause.controller','get','isAuthenticated','/:id','show','post','put','update','destroy','multer','path','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x2474ac,_0x335d3a){var _0x384a8f=function(_0x402bf6){while(--_0x402bf6){_0x2474ac['push'](_0x2474ac['shift']());}};_0x384a8f(++_0x335d3a);}(_0xe9a9,0x19e));var _0x9e9a=function(_0x27a231,_0x250995){_0x27a231=_0x27a231-0x0;var _0x2efbda=_0xe9a9[_0x27a231];return _0x2efbda;};'use strict';var multer=require(_0x9e9a('0x0'));var util=require('util');var path=require(_0x9e9a('0x1'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x9e9a('0x2')]();var fs_extra=require(_0x9e9a('0x3'));var auth=require(_0x9e9a('0x4'));var interaction=require(_0x9e9a('0x5'));var config=require('../../config/environment');var controller=require(_0x9e9a('0x6'));router[_0x9e9a('0x7')]('/',auth[_0x9e9a('0x8')](),controller['index']);router[_0x9e9a('0x7')](_0x9e9a('0x9'),auth[_0x9e9a('0x8')](),controller[_0x9e9a('0xa')]);router[_0x9e9a('0xb')]('/',auth[_0x9e9a('0x8')](),controller['create']);router[_0x9e9a('0xc')](_0x9e9a('0x9'),auth['isAuthenticated'](),controller[_0x9e9a('0xd')]);router['delete'](_0x9e9a('0x9'),auth['isAuthenticated'](),controller[_0x9e9a('0xe')]);module['exports']=router;