a7532d8a7a2b896cc0f583e8dff6b5e854f4210a
[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 _0x7429=['express','Router','../../components/interaction/service','../../config/environment','./squareOdbc.controller','get','isAuthenticated','/:id','/:id/test','15s','test','post','create','delete','exports','path'];(function(_0x4c82ef,_0x275548){var _0x3b8587=function(_0x277838){while(--_0x277838){_0x4c82ef['push'](_0x4c82ef['shift']());}};_0x3b8587(++_0x275548);}(_0x7429,0x6f));var _0x9742=function(_0x4d1674,_0x170d77){_0x4d1674=_0x4d1674-0x0;var _0x27e2d9=_0x7429[_0x4d1674];return _0x27e2d9;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x9742('0x0'));var timeout=require('connect-timeout');var express=require(_0x9742('0x1'));var router=express[_0x9742('0x2')]();var auth=require('../../components/auth/service');var interaction=require(_0x9742('0x3'));var config=require(_0x9742('0x4'));var controller=require(_0x9742('0x5'));router[_0x9742('0x6')]('/',auth[_0x9742('0x7')](),controller['index']);router['get'](_0x9742('0x8'),auth[_0x9742('0x7')](),controller['show']);router[_0x9742('0x6')](_0x9742('0x9'),auth['isAuthenticated'](),timeout(_0x9742('0xa')),controller[_0x9742('0xb')]);router[_0x9742('0xc')]('/',auth['isAuthenticated'](),controller[_0x9742('0xd')]);router['put'](_0x9742('0x8'),auth[_0x9742('0x7')](),controller['update']);router[_0x9742('0xe')](_0x9742('0x8'),auth[_0x9742('0x7')](),controller['destroy']);module[_0x9742('0xf')]=router;