f74c1afe1d5679be9e940a52e06880a85803b582
[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 _0x7f8d=['path','connect-timeout','express','fs-extra','../../components/interaction/service','./squareOdbc.controller','get','isAuthenticated','index','/:id','show','/:id/test','15s','test','post','put','exports','multer','util'];(function(_0x1a3436,_0x6576db){var _0x515c2e=function(_0x2c4443){while(--_0x2c4443){_0x1a3436['push'](_0x1a3436['shift']());}};_0x515c2e(++_0x6576db);}(_0x7f8d,0x1ec));var _0xd7f8=function(_0x469ed4,_0x49da48){_0x469ed4=_0x469ed4-0x0;var _0x2e7c14=_0x7f8d[_0x469ed4];return _0x2e7c14;};'use strict';var multer=require(_0xd7f8('0x0'));var util=require(_0xd7f8('0x1'));var path=require(_0xd7f8('0x2'));var timeout=require(_0xd7f8('0x3'));var express=require(_0xd7f8('0x4'));var router=express['Router']();var fs_extra=require(_0xd7f8('0x5'));var auth=require('../../components/auth/service');var interaction=require(_0xd7f8('0x6'));var config=require('../../config/environment');var controller=require(_0xd7f8('0x7'));router[_0xd7f8('0x8')]('/',auth[_0xd7f8('0x9')](),controller[_0xd7f8('0xa')]);router[_0xd7f8('0x8')](_0xd7f8('0xb'),auth[_0xd7f8('0x9')](),controller[_0xd7f8('0xc')]);router['get'](_0xd7f8('0xd'),auth[_0xd7f8('0x9')](),timeout(_0xd7f8('0xe')),controller[_0xd7f8('0xf')]);router[_0xd7f8('0x10')]('/',auth[_0xd7f8('0x9')](),controller['create']);router[_0xd7f8('0x11')]('/:id',auth[_0xd7f8('0x9')](),controller['update']);router['delete']('/:id',auth[_0xd7f8('0x9')](),controller['destroy']);module[_0xd7f8('0x12')]=router;