039311b2b49096ceeb149c7497796716e46d3ce8
[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 _0x8957=['path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','/:id/download','download','post','create','put','/:id/delete','destroy','exports','multer','util'];(function(_0x5b89bb,_0x2c7298){var _0x5f41d1=function(_0xc0de81){while(--_0xc0de81){_0x5b89bb['push'](_0x5b89bb['shift']());}};_0x5f41d1(++_0x2c7298);}(_0x8957,0xf5));var _0x7895=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0x8957[_0x5b644e];return _0x49c6bf;};'use strict';var multer=require(_0x7895('0x0'));var util=require(_0x7895('0x1'));var path=require(_0x7895('0x2'));var timeout=require(_0x7895('0x3'));var express=require(_0x7895('0x4'));var router=express[_0x7895('0x5')]();var auth=require('../../components/auth/service');var interaction=require(_0x7895('0x6'));var config=require(_0x7895('0x7'));var controller=require('./squareRecording.controller');router['get']('/',auth[_0x7895('0x8')](),controller[_0x7895('0x9')]);router['get'](_0x7895('0xa'),auth[_0x7895('0x8')](),controller['show']);router['get'](_0x7895('0xb'),auth[_0x7895('0x8')](),controller[_0x7895('0xc')]);router[_0x7895('0xd')]('/',auth[_0x7895('0x8')](),controller[_0x7895('0xe')]);router[_0x7895('0xf')](_0x7895('0xa'),auth[_0x7895('0x8')](),controller['update']);router['delete'](_0x7895('0x10'),auth[_0x7895('0x8')](),controller[_0x7895('0x11')]);module[_0x7895('0x12')]=router;