Built motion from commit (unavailable).|2.5.11
[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 _0x7c51=['destroy','exports','multer','path','express','../../components/interaction/service','./squareRecording.controller','get','isAuthenticated','/:id','show','put','/:id/delete'];(function(_0x3cbf19,_0x2f22da){var _0x551c6e=function(_0x4c9d3a){while(--_0x4c9d3a){_0x3cbf19['push'](_0x3cbf19['shift']());}};_0x551c6e(++_0x2f22da);}(_0x7c51,0x188));var _0x17c5=function(_0x51722f,_0x5abc41){_0x51722f=_0x51722f-0x0;var _0xf26218=_0x7c51[_0x51722f];return _0xf26218;};'use strict';var multer=require(_0x17c5('0x0'));var util=require('util');var path=require(_0x17c5('0x1'));var timeout=require('connect-timeout');var express=require(_0x17c5('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x17c5('0x3'));var config=require('../../config/environment');var controller=require(_0x17c5('0x4'));router[_0x17c5('0x5')]('/',auth[_0x17c5('0x6')](),controller['index']);router[_0x17c5('0x5')](_0x17c5('0x7'),auth[_0x17c5('0x6')](),controller[_0x17c5('0x8')]);router[_0x17c5('0x5')]('/:id/download',auth[_0x17c5('0x6')](),controller['download']);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x17c5('0x9')]('/:id',auth[_0x17c5('0x6')](),controller['update']);router['delete'](_0x17c5('0xa'),auth[_0x17c5('0x6')](),controller[_0x17c5('0xb')]);module[_0x17c5('0xc')]=router;