e03757d80763f356accfd1aaea2f50994653a8f8
[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 _0xbc62=['put','delete','destroy','exports','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment','isAuthenticated','/:id','get','/:id/test','15s','post'];(function(_0x247a5e,_0x40b75d){var _0x16e004=function(_0x4e38c7){while(--_0x4e38c7){_0x247a5e['push'](_0x247a5e['shift']());}};_0x16e004(++_0x40b75d);}(_0xbc62,0x125));var _0x2bc6=function(_0x23c591,_0x2843c5){_0x23c591=_0x23c591-0x0;var _0x1a20a6=_0xbc62[_0x23c591];return _0x1a20a6;};'use strict';var multer=require('multer');var util=require(_0x2bc6('0x0'));var path=require(_0x2bc6('0x1'));var timeout=require('connect-timeout');var express=require(_0x2bc6('0x2'));var router=express[_0x2bc6('0x3')]();var fs_extra=require(_0x2bc6('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x2bc6('0x5'));var config=require(_0x2bc6('0x6'));var controller=require('./squareOdbc.controller');router['get']('/',auth[_0x2bc6('0x7')](),controller['index']);router['get'](_0x2bc6('0x8'),auth[_0x2bc6('0x7')](),controller['show']);router[_0x2bc6('0x9')](_0x2bc6('0xa'),auth[_0x2bc6('0x7')](),timeout(_0x2bc6('0xb')),controller['test']);router[_0x2bc6('0xc')]('/',auth[_0x2bc6('0x7')](),controller['create']);router[_0x2bc6('0xd')](_0x2bc6('0x8'),auth[_0x2bc6('0x7')](),controller['update']);router[_0x2bc6('0xe')](_0x2bc6('0x8'),auth[_0x2bc6('0x7')](),controller[_0x2bc6('0xf')]);module[_0x2bc6('0x10')]=router;