8e46ebdb9d5b19396cb93a6cab4ef8f74d5da40a
[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 _0x54cf=['show','/:id/test','post','create','put','/:id','update','destroy','exports','multer','connect-timeout','express','../../components/interaction/service','../../config/environment','./squareOdbc.controller','get','isAuthenticated','index'];(function(_0x48b502,_0x1ef01c){var _0x365d74=function(_0x1e181f){while(--_0x1e181f){_0x48b502['push'](_0x48b502['shift']());}};_0x365d74(++_0x1ef01c);}(_0x54cf,0xbd));var _0xf54c=function(_0x371145,_0x271b3d){_0x371145=_0x371145-0x0;var _0x583fae=_0x54cf[_0x371145];return _0x583fae;};'use strict';var multer=require(_0xf54c('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xf54c('0x1'));var express=require(_0xf54c('0x2'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0xf54c('0x3'));var config=require(_0xf54c('0x4'));var controller=require(_0xf54c('0x5'));router[_0xf54c('0x6')]('/',auth[_0xf54c('0x7')](),controller[_0xf54c('0x8')]);router['get']('/:id',auth[_0xf54c('0x7')](),controller[_0xf54c('0x9')]);router['get'](_0xf54c('0xa'),auth[_0xf54c('0x7')](),timeout('15s'),controller['test']);router[_0xf54c('0xb')]('/',auth[_0xf54c('0x7')](),controller[_0xf54c('0xc')]);router[_0xf54c('0xd')](_0xf54c('0xe'),auth['isAuthenticated'](),controller[_0xf54c('0xf')]);router['delete'](_0xf54c('0xe'),auth[_0xf54c('0x7')](),controller[_0xf54c('0x10')]);module[_0xf54c('0x11')]=router;