60d065dfa124e57fd3f0f516b4d5f126b552580d
[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 _0xa91a=['./squareOdbc.controller','get','isAuthenticated','index','/:id/test','15s','test','post','create','put','/:id','update','exports','util','path','connect-timeout','express','Router','../../components/interaction/service','../../config/environment'];(function(_0x4ea064,_0x105b04){var _0x15a832=function(_0x1c1055){while(--_0x1c1055){_0x4ea064['push'](_0x4ea064['shift']());}};_0x15a832(++_0x105b04);}(_0xa91a,0x111));var _0xaa91=function(_0x53a0f5,_0x2daaf3){_0x53a0f5=_0x53a0f5-0x0;var _0x2ebe29=_0xa91a[_0x53a0f5];return _0x2ebe29;};'use strict';var multer=require('multer');var util=require(_0xaa91('0x0'));var path=require(_0xaa91('0x1'));var timeout=require(_0xaa91('0x2'));var express=require(_0xaa91('0x3'));var router=express[_0xaa91('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0xaa91('0x5'));var config=require(_0xaa91('0x6'));var controller=require(_0xaa91('0x7'));router[_0xaa91('0x8')]('/',auth[_0xaa91('0x9')](),controller[_0xaa91('0xa')]);router[_0xaa91('0x8')]('/:id',auth[_0xaa91('0x9')](),controller['show']);router[_0xaa91('0x8')](_0xaa91('0xb'),auth[_0xaa91('0x9')](),timeout(_0xaa91('0xc')),controller[_0xaa91('0xd')]);router[_0xaa91('0xe')]('/',auth['isAuthenticated'](),controller[_0xaa91('0xf')]);router[_0xaa91('0x10')](_0xaa91('0x11'),auth[_0xaa91('0x9')](),controller[_0xaa91('0x12')]);router['delete'](_0xaa91('0x11'),auth[_0xaa91('0x9')](),controller['destroy']);module[_0xaa91('0x13')]=router;