9a0641677086cbe654480c8612645cc3d624f32e
[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 _0x3865=['Router','../../components/auth/service','../../config/environment','./squareOdbc.controller','get','isAuthenticated','index','/:id','show','/:id/test','15s','test','put','update','delete','destroy','exports','multer','path','express'];(function(_0x108c58,_0x58ef54){var _0x42fe9b=function(_0x50937b){while(--_0x50937b){_0x108c58['push'](_0x108c58['shift']());}};_0x42fe9b(++_0x58ef54);}(_0x3865,0x151));var _0x5386=function(_0x15f26b,_0x5d5bb8){_0x15f26b=_0x15f26b-0x0;var _0x215e45=_0x3865[_0x15f26b];return _0x215e45;};'use strict';var multer=require(_0x5386('0x0'));var util=require('util');var path=require(_0x5386('0x1'));var timeout=require('connect-timeout');var express=require(_0x5386('0x2'));var router=express[_0x5386('0x3')]();var auth=require(_0x5386('0x4'));var interaction=require('../../components/interaction/service');var config=require(_0x5386('0x5'));var controller=require(_0x5386('0x6'));router[_0x5386('0x7')]('/',auth[_0x5386('0x8')](),controller[_0x5386('0x9')]);router['get'](_0x5386('0xa'),auth[_0x5386('0x8')](),controller[_0x5386('0xb')]);router[_0x5386('0x7')](_0x5386('0xc'),auth[_0x5386('0x8')](),timeout(_0x5386('0xd')),controller[_0x5386('0xe')]);router['post']('/',auth[_0x5386('0x8')](),controller['create']);router[_0x5386('0xf')](_0x5386('0xa'),auth[_0x5386('0x8')](),controller[_0x5386('0x10')]);router[_0x5386('0x11')](_0x5386('0xa'),auth[_0x5386('0x8')](),controller[_0x5386('0x12')]);module[_0x5386('0x13')]=router;