75c5dd4671213b1f4a7ea26960218fac48f00e9a
[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 _0xe10c=['util','path','express','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/download','post','create','put','update','delete','destroy','exports','multer'];(function(_0x15dc4a,_0x37ac48){var _0x23c048=function(_0xf6d775){while(--_0xf6d775){_0x15dc4a['push'](_0x15dc4a['shift']());}};_0x23c048(++_0x37ac48);}(_0xe10c,0x153));var _0xce10=function(_0x348e18,_0x385068){_0x348e18=_0x348e18-0x0;var _0x525b17=_0xe10c[_0x348e18];return _0x525b17;};'use strict';var multer=require(_0xce10('0x0'));var util=require(_0xce10('0x1'));var path=require(_0xce10('0x2'));var timeout=require('connect-timeout');var express=require(_0xce10('0x3'));var router=express['Router']();var auth=require(_0xce10('0x4'));var interaction=require(_0xce10('0x5'));var config=require(_0xce10('0x6'));var controller=require('./squareRecording.controller');router['get']('/',auth[_0xce10('0x7')](),controller[_0xce10('0x8')]);router[_0xce10('0x9')](_0xce10('0xa'),auth['isAuthenticated'](),controller[_0xce10('0xb')]);router['get'](_0xce10('0xc'),auth[_0xce10('0x7')](),controller['download']);router[_0xce10('0xd')]('/',auth['isAuthenticated'](),controller[_0xce10('0xe')]);router[_0xce10('0xf')](_0xce10('0xa'),auth[_0xce10('0x7')](),controller[_0xce10('0x10')]);router[_0xce10('0x11')](_0xce10('0xa'),auth[_0xce10('0x7')](),controller[_0xce10('0x12')]);module[_0xce10('0x13')]=router;