Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / squareReport / 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 _0xcb37=['delete','destroy','exports','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','./squareReport.controller','get','isAuthenticated','index','describe','/:id','show','post','create'];(function(_0x28a2fd,_0x1a153a){var _0x37e8a8=function(_0x286c40){while(--_0x286c40){_0x28a2fd['push'](_0x28a2fd['shift']());}};_0x37e8a8(++_0x1a153a);}(_0xcb37,0x179));var _0x7cb3=function(_0x553f0e,_0x4938e1){_0x553f0e=_0x553f0e-0x0;var _0x138c13=_0xcb37[_0x553f0e];return _0x138c13;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x7cb3('0x0'));var timeout=require(_0x7cb3('0x1'));var express=require(_0x7cb3('0x2'));var router=express['Router']();var auth=require(_0x7cb3('0x3'));var interaction=require(_0x7cb3('0x4'));var config=require('../../config/environment');var controller=require(_0x7cb3('0x5'));router[_0x7cb3('0x6')]('/',auth[_0x7cb3('0x7')](),controller[_0x7cb3('0x8')]);router[_0x7cb3('0x6')]('/describe',auth['isAuthenticated'](),controller[_0x7cb3('0x9')]);router[_0x7cb3('0x6')](_0x7cb3('0xa'),auth[_0x7cb3('0x7')](),controller[_0x7cb3('0xb')]);router[_0x7cb3('0xc')]('/',auth['isAuthenticated'](),controller[_0x7cb3('0xd')]);router['put'](_0x7cb3('0xa'),auth[_0x7cb3('0x7')](),controller['update']);router[_0x7cb3('0xe')](_0x7cb3('0xa'),auth[_0x7cb3('0x7')](),controller[_0x7cb3('0xf')]);module[_0x7cb3('0x10')]=router;