4e92bc719b0d12a8facfd17138b584ac0a59d87d
[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 _0x63c6=['test','create','put','update','delete','destroy','exports','multer','util','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./squareOdbc.controller','get','isAuthenticated','index','/:id','show'];(function(_0x5ebcc4,_0x24356a){var _0xff2552=function(_0x2f4f51){while(--_0x2f4f51){_0x5ebcc4['push'](_0x5ebcc4['shift']());}};_0xff2552(++_0x24356a);}(_0x63c6,0xbb));var _0x663c=function(_0x59d7d9,_0x373835){_0x59d7d9=_0x59d7d9-0x0;var _0x4c307a=_0x63c6[_0x59d7d9];return _0x4c307a;};'use strict';var multer=require(_0x663c('0x0'));var util=require(_0x663c('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x663c('0x2'));var router=express[_0x663c('0x3')]();var auth=require(_0x663c('0x4'));var interaction=require(_0x663c('0x5'));var config=require(_0x663c('0x6'));var controller=require(_0x663c('0x7'));router[_0x663c('0x8')]('/',auth[_0x663c('0x9')](),controller[_0x663c('0xa')]);router['get'](_0x663c('0xb'),auth[_0x663c('0x9')](),controller[_0x663c('0xc')]);router[_0x663c('0x8')]('/:id/test',auth[_0x663c('0x9')](),timeout('15s'),controller[_0x663c('0xd')]);router['post']('/',auth[_0x663c('0x9')](),controller[_0x663c('0xe')]);router[_0x663c('0xf')](_0x663c('0xb'),auth[_0x663c('0x9')](),controller[_0x663c('0x10')]);router[_0x663c('0x11')]('/:id',auth['isAuthenticated'](),controller[_0x663c('0x12')]);module[_0x663c('0x13')]=router;