a8f8fe97f19f1c81c7190e29e9180b0173185b77
[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 _0x14ae=['update','delete','destroy','exports','connect-timeout','express','Router','../../config/environment','./squareRecording.controller','get','isAuthenticated','index','/:id','show','/:id/download','download','post','create','put'];(function(_0x2cfb58,_0x3d9412){var _0xd99951=function(_0x329afa){while(--_0x329afa){_0x2cfb58['push'](_0x2cfb58['shift']());}};_0xd99951(++_0x3d9412);}(_0x14ae,0x121));var _0xe14a=function(_0x5a5ccd,_0x44a15d){_0x5a5ccd=_0x5a5ccd-0x0;var _0x31a9b5=_0x14ae[_0x5a5ccd];return _0x31a9b5;};'use strict';var multer=require('multer');var util=require('util');var path=require('path');var timeout=require(_0xe14a('0x0'));var express=require(_0xe14a('0x1'));var router=express[_0xe14a('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xe14a('0x3'));var controller=require(_0xe14a('0x4'));router[_0xe14a('0x5')]('/',auth[_0xe14a('0x6')](),controller[_0xe14a('0x7')]);router[_0xe14a('0x5')](_0xe14a('0x8'),auth[_0xe14a('0x6')](),controller[_0xe14a('0x9')]);router[_0xe14a('0x5')](_0xe14a('0xa'),auth['isAuthenticated'](),controller[_0xe14a('0xb')]);router[_0xe14a('0xc')]('/',auth[_0xe14a('0x6')](),controller[_0xe14a('0xd')]);router[_0xe14a('0xe')]('/:id',auth[_0xe14a('0x6')](),controller[_0xe14a('0xf')]);router[_0xe14a('0x10')]('/:id/delete',auth[_0xe14a('0x6')](),controller[_0xe14a('0x11')]);module[_0xe14a('0x12')]=router;