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 _0x67db=['/:id','update','delete','destroy','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareRecording.controller','get','isAuthenticated','show','download','create'];(function(_0xaaa4fd,_0x9c5f4b){var _0xd428ce=function(_0x1b930c){while(--_0x1b930c){_0xaaa4fd['push'](_0xaaa4fd['shift']());}};_0xd428ce(++_0x9c5f4b);}(_0x67db,0x103));var _0xb67d=function(_0x173441,_0x26b0d9){_0x173441=_0x173441-0x0;var _0x2423a8=_0x67db[_0x173441];return _0x2423a8;};'use strict';var multer=require(_0xb67d('0x0'));var util=require(_0xb67d('0x1'));var path=require('path');var express=require(_0xb67d('0x2'));var router=express[_0xb67d('0x3')]();var auth=require(_0xb67d('0x4'));var interaction=require(_0xb67d('0x5'));var config=require(_0xb67d('0x6'));var controller=require(_0xb67d('0x7'));router[_0xb67d('0x8')]('/',auth[_0xb67d('0x9')](),controller['index']);router['get']('/:id',auth[_0xb67d('0x9')](),controller[_0xb67d('0xa')]);router['get']('/:id/download',auth[_0xb67d('0x9')](),controller[_0xb67d('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0xb67d('0xc')]);router['put'](_0xb67d('0xd'),auth['isAuthenticated'](),controller[_0xb67d('0xe')]);router[_0xb67d('0xf')](_0xb67d('0xd'),auth[_0xb67d('0x9')](),controller[_0xb67d('0x10')]);module['exports']=router;