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