a7d305730e7e762fbb29385e3b27fe8b5efaa052
[motion2.git] / server / api / squareOdbc / 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 _0x6942=['../../components/auth/service','../../components/interaction/service','../../config/environment','./squareOdbc.controller','isAuthenticated','index','/:id','/:id/test','test','post','put','update','destroy','multer','util','path','connect-timeout','Router'];(function(_0x341b3c,_0x4adde2){var _0x149d68=function(_0x5b0bfb){while(--_0x5b0bfb){_0x341b3c['push'](_0x341b3c['shift']());}};_0x149d68(++_0x4adde2);}(_0x6942,0xf7));var _0x2694=function(_0x47bd6a,_0x1d2c26){_0x47bd6a=_0x47bd6a-0x0;var _0x5b5141=_0x6942[_0x47bd6a];return _0x5b5141;};'use strict';var multer=require(_0x2694('0x0'));var util=require(_0x2694('0x1'));var path=require(_0x2694('0x2'));var timeout=require(_0x2694('0x3'));var express=require('express');var router=express[_0x2694('0x4')]();var auth=require(_0x2694('0x5'));var interaction=require(_0x2694('0x6'));var config=require(_0x2694('0x7'));var controller=require(_0x2694('0x8'));router['get']('/',auth[_0x2694('0x9')](),controller[_0x2694('0xa')]);router['get'](_0x2694('0xb'),auth[_0x2694('0x9')](),controller['show']);router['get'](_0x2694('0xc'),auth['isAuthenticated'](),timeout('15s'),controller[_0x2694('0xd')]);router[_0x2694('0xe')]('/',auth[_0x2694('0x9')](),controller['create']);router[_0x2694('0xf')](_0x2694('0xb'),auth[_0x2694('0x9')](),controller[_0x2694('0x10')]);router['delete'](_0x2694('0xb'),auth[_0x2694('0x9')](),controller[_0x2694('0x11')]);module['exports']=router;