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 _0xf42b=['./squareRecording.controller','get','isAuthenticated','index','show','/:id/download','download','post','put','/:id','update','destroy','multer','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x522444,_0x12b5e4){var _0x23fcf8=function(_0x5b09ce){while(--_0x5b09ce){_0x522444['push'](_0x522444['shift']());}};_0x23fcf8(++_0x12b5e4);}(_0xf42b,0x19c));var _0xbf42=function(_0x17dc62,_0x53736f){_0x17dc62=_0x17dc62-0x0;var _0x24b466=_0xf42b[_0x17dc62];return _0x24b466;};'use strict';var multer=require(_0xbf42('0x0'));var util=require(_0xbf42('0x1'));var path=require(_0xbf42('0x2'));var timeout=require(_0xbf42('0x3'));var express=require(_0xbf42('0x4'));var router=express[_0xbf42('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0xbf42('0x6'));var config=require(_0xbf42('0x7'));var controller=require(_0xbf42('0x8'));router[_0xbf42('0x9')]('/',auth[_0xbf42('0xa')](),controller[_0xbf42('0xb')]);router[_0xbf42('0x9')]('/:id',auth[_0xbf42('0xa')](),controller[_0xbf42('0xc')]);router[_0xbf42('0x9')](_0xbf42('0xd'),auth[_0xbf42('0xa')](),controller[_0xbf42('0xe')]);router[_0xbf42('0xf')]('/',auth[_0xbf42('0xa')](),controller['create']);router[_0xbf42('0x10')](_0xbf42('0x11'),auth['isAuthenticated'](),controller[_0xbf42('0x12')]);router['delete']('/:id/delete',auth['isAuthenticated'](),controller[_0xbf42('0x13')]);module['exports']=router;