Built motion from commit (unavailable).|2.5.23
[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 _0x4375=['../../config/environment','./squareRecording.controller','get','isAuthenticated','/:id','show','/:id/download','create','put','update','delete','/:id/delete','destroy','exports','multer','util','path','../../components/auth/service','../../components/interaction/service'];(function(_0x3b0912,_0x39d739){var _0xa8f339=function(_0x6a31ab){while(--_0x6a31ab){_0x3b0912['push'](_0x3b0912['shift']());}};_0xa8f339(++_0x39d739);}(_0x4375,0x1b0));var _0x5437=function(_0x208388,_0x4ea09b){_0x208388=_0x208388-0x0;var _0x3c2073=_0x4375[_0x208388];return _0x3c2073;};'use strict';var multer=require(_0x5437('0x0'));var util=require(_0x5437('0x1'));var path=require(_0x5437('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require(_0x5437('0x3'));var interaction=require(_0x5437('0x4'));var config=require(_0x5437('0x5'));var controller=require(_0x5437('0x6'));router[_0x5437('0x7')]('/',auth[_0x5437('0x8')](),controller['index']);router['get'](_0x5437('0x9'),auth['isAuthenticated'](),controller[_0x5437('0xa')]);router[_0x5437('0x7')](_0x5437('0xb'),auth[_0x5437('0x8')](),controller['download']);router['post']('/',auth[_0x5437('0x8')](),controller[_0x5437('0xc')]);router[_0x5437('0xd')](_0x5437('0x9'),auth['isAuthenticated'](),controller[_0x5437('0xe')]);router[_0x5437('0xf')](_0x5437('0x10'),auth[_0x5437('0x8')](),controller[_0x5437('0x11')]);module[_0x5437('0x12')]=router;