8f874dd3f57ac81344b4ce9586d3dbee3c7f2d07
[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 _0x327f=['post','create','put','delete','destroy','multer','path','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','/:id/test','test'];(function(_0x3c4087,_0x5c764b){var _0x23ad1f=function(_0x39bf1c){while(--_0x39bf1c){_0x3c4087['push'](_0x3c4087['shift']());}};_0x23ad1f(++_0x5c764b);}(_0x327f,0x1a7));var _0xf327=function(_0x19950b,_0x53d0d7){_0x19950b=_0x19950b-0x0;var _0x3c6b41=_0x327f[_0x19950b];return _0x3c6b41;};'use strict';var multer=require(_0xf327('0x0'));var util=require('util');var path=require(_0xf327('0x1'));var timeout=require('connect-timeout');var express=require(_0xf327('0x2'));var router=express[_0xf327('0x3')]();var fs_extra=require(_0xf327('0x4'));var auth=require(_0xf327('0x5'));var interaction=require(_0xf327('0x6'));var config=require(_0xf327('0x7'));var controller=require('./squareOdbc.controller');router['get']('/',auth[_0xf327('0x8')](),controller['index']);router[_0xf327('0x9')](_0xf327('0xa'),auth[_0xf327('0x8')](),controller[_0xf327('0xb')]);router[_0xf327('0x9')](_0xf327('0xc'),auth[_0xf327('0x8')](),timeout('15s'),controller[_0xf327('0xd')]);router[_0xf327('0xe')]('/',auth[_0xf327('0x8')](),controller[_0xf327('0xf')]);router[_0xf327('0x10')](_0xf327('0xa'),auth[_0xf327('0x8')](),controller['update']);router[_0xf327('0x11')](_0xf327('0xa'),auth['isAuthenticated'](),controller[_0xf327('0x12')]);module['exports']=router;