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 _0x30a1=['../../config/environment','./pause.controller','isAuthenticated','index','create','put','update','delete','destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x5f3f88,_0x562baf){var _0xd08119=function(_0x42dbf7){while(--_0x42dbf7){_0x5f3f88['push'](_0x5f3f88['shift']());}};_0xd08119(++_0x562baf);}(_0x30a1,0x1a2));var _0x130a=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x30a1[_0x14add3];return _0x4a174f;};'use strict';var multer=require(_0x130a('0x0'));var util=require(_0x130a('0x1'));var path=require(_0x130a('0x2'));var timeout=require('connect-timeout');var express=require(_0x130a('0x3'));var router=express['Router']();var fs_extra=require(_0x130a('0x4'));var auth=require(_0x130a('0x5'));var interaction=require(_0x130a('0x6'));var config=require(_0x130a('0x7'));var controller=require(_0x130a('0x8'));router['get']('/',auth[_0x130a('0x9')](),controller[_0x130a('0xa')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router['post']('/',auth['isAuthenticated'](),controller[_0x130a('0xb')]);router[_0x130a('0xc')]('/:id',auth[_0x130a('0x9')](),controller[_0x130a('0xd')]);router[_0x130a('0xe')]('/:id',auth['isAuthenticated'](),controller[_0x130a('0xf')]);module[_0x130a('0x10')]=router;