7c1dafb24690f0952fcc787367dfd4fad09d883d
[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 _0xe74b=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show','/:id/test','15s','post','create','destroy','multer','connect-timeout','express'];(function(_0x33690e,_0x4d0925){var _0x2d3f2e=function(_0x14169c){while(--_0x14169c){_0x33690e['push'](_0x33690e['shift']());}};_0x2d3f2e(++_0x4d0925);}(_0xe74b,0xfc));var _0xbe74=function(_0x5c98f9,_0x42c5d3){_0x5c98f9=_0x5c98f9-0x0;var _0x1e28e9=_0xe74b[_0x5c98f9];return _0x1e28e9;};'use strict';var multer=require(_0xbe74('0x0'));var util=require('util');var path=require('path');var timeout=require(_0xbe74('0x1'));var express=require(_0xbe74('0x2'));var router=express[_0xbe74('0x3')]();var auth=require(_0xbe74('0x4'));var interaction=require(_0xbe74('0x5'));var config=require(_0xbe74('0x6'));var controller=require('./squareOdbc.controller');router[_0xbe74('0x7')]('/',auth[_0xbe74('0x8')](),controller[_0xbe74('0x9')]);router[_0xbe74('0x7')](_0xbe74('0xa'),auth[_0xbe74('0x8')](),controller[_0xbe74('0xb')]);router[_0xbe74('0x7')](_0xbe74('0xc'),auth[_0xbe74('0x8')](),timeout(_0xbe74('0xd')),controller['test']);router[_0xbe74('0xe')]('/',auth[_0xbe74('0x8')](),controller[_0xbe74('0xf')]);router['put'](_0xbe74('0xa'),auth[_0xbe74('0x8')](),controller['update']);router['delete']('/:id',auth[_0xbe74('0x8')](),controller[_0xbe74('0x10')]);module['exports']=router;