Built motion from commit (unavailable).|2.5.21
[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 _0x4e40=['path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','/:id','show','get','/:id/download','download','post','create','put','update','delete','destroy','multer','util'];(function(_0x174411,_0x48d185){var _0x19527e=function(_0x373e41){while(--_0x373e41){_0x174411['push'](_0x174411['shift']());}};_0x19527e(++_0x48d185);}(_0x4e40,0x7c));var _0x04e4=function(_0x365265,_0x48e8e8){_0x365265=_0x365265-0x0;var _0x326ff5=_0x4e40[_0x365265];return _0x326ff5;};'use strict';var multer=require(_0x04e4('0x0'));var util=require(_0x04e4('0x1'));var path=require(_0x04e4('0x2'));var timeout=require('connect-timeout');var express=require(_0x04e4('0x3'));var router=express[_0x04e4('0x4')]();var auth=require(_0x04e4('0x5'));var interaction=require(_0x04e4('0x6'));var config=require(_0x04e4('0x7'));var controller=require('./squareRecording.controller');router['get']('/',auth[_0x04e4('0x8')](),controller[_0x04e4('0x9')]);router['get'](_0x04e4('0xa'),auth[_0x04e4('0x8')](),controller[_0x04e4('0xb')]);router[_0x04e4('0xc')](_0x04e4('0xd'),auth['isAuthenticated'](),controller[_0x04e4('0xe')]);router[_0x04e4('0xf')]('/',auth['isAuthenticated'](),controller[_0x04e4('0x10')]);router[_0x04e4('0x11')](_0x04e4('0xa'),auth[_0x04e4('0x8')](),controller[_0x04e4('0x12')]);router[_0x04e4('0x13')]('/:id/delete',auth[_0x04e4('0x8')](),controller[_0x04e4('0x14')]);module['exports']=router;