Built motion from commit (unavailable).|2.5.21
[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 _0xcf26=['create','update','destroy','util','path','connect-timeout','express','Router','../../components/auth/service','./squareReport.controller','get','isAuthenticated','index','/describe','describe','/:id','post'];(function(_0x4ad7fe,_0x1358e9){var _0x2aebdd=function(_0x18673c){while(--_0x18673c){_0x4ad7fe['push'](_0x4ad7fe['shift']());}};_0x2aebdd(++_0x1358e9);}(_0xcf26,0x168));var _0x6cf2=function(_0x1d4d75,_0x48b6b4){_0x1d4d75=_0x1d4d75-0x0;var _0x11316d=_0xcf26[_0x1d4d75];return _0x11316d;};'use strict';var multer=require('multer');var util=require(_0x6cf2('0x0'));var path=require(_0x6cf2('0x1'));var timeout=require(_0x6cf2('0x2'));var express=require(_0x6cf2('0x3'));var router=express[_0x6cf2('0x4')]();var auth=require(_0x6cf2('0x5'));var interaction=require('../../components/interaction/service');var config=require('../../config/environment');var controller=require(_0x6cf2('0x6'));router[_0x6cf2('0x7')]('/',auth[_0x6cf2('0x8')](),controller[_0x6cf2('0x9')]);router[_0x6cf2('0x7')](_0x6cf2('0xa'),auth[_0x6cf2('0x8')](),controller[_0x6cf2('0xb')]);router[_0x6cf2('0x7')](_0x6cf2('0xc'),auth[_0x6cf2('0x8')](),controller['show']);router[_0x6cf2('0xd')]('/',auth['isAuthenticated'](),controller[_0x6cf2('0xe')]);router['put'](_0x6cf2('0xc'),auth[_0x6cf2('0x8')](),controller[_0x6cf2('0xf')]);router['delete'](_0x6cf2('0xc'),auth[_0x6cf2('0x8')](),controller[_0x6cf2('0x10')]);module['exports']=router;