529445db94ec50d4696d259a22d2428a64cb52ba
[motion2.git] / server / api / squareRecording / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xa0ac=['exports','multer','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareRecording.controller','get','/:id','show','/:id/download','isAuthenticated','download','create','update','delete','destroy'];(function(_0x314df7,_0x201fad){var _0xace2d2=function(_0x4be770){while(--_0x4be770){_0x314df7['push'](_0x314df7['shift']());}};_0xace2d2(++_0x201fad);}(_0xa0ac,0xac));var _0xca0a=function(_0x1b1bcf,_0x12d153){_0x1b1bcf=_0x1b1bcf-0x0;var _0x15a846=_0xa0ac[_0x1b1bcf];return _0x15a846;};'use strict';var multer=require(_0xca0a('0x0'));var util=require('util');var path=require(_0xca0a('0x1'));var timeout=require('connect-timeout');var express=require(_0xca0a('0x2'));var router=express[_0xca0a('0x3')]();var auth=require(_0xca0a('0x4'));var interaction=require(_0xca0a('0x5'));var config=require(_0xca0a('0x6'));var controller=require(_0xca0a('0x7'));router[_0xca0a('0x8')]('/',auth['isAuthenticated'](),controller['index']);router[_0xca0a('0x8')](_0xca0a('0x9'),auth['isAuthenticated'](),controller[_0xca0a('0xa')]);router[_0xca0a('0x8')](_0xca0a('0xb'),auth[_0xca0a('0xc')](),controller[_0xca0a('0xd')]);router['post']('/',auth[_0xca0a('0xc')](),controller[_0xca0a('0xe')]);router['put'](_0xca0a('0x9'),auth[_0xca0a('0xc')](),controller[_0xca0a('0xf')]);router[_0xca0a('0x10')]('/:id/delete',auth[_0xca0a('0xc')](),controller[_0xca0a('0x11')]);module[_0xca0a('0x12')]=router;