22130bb3d9a551b5cab8c25cc046ed63b2998265
[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 _0x7d70=['post','create','put','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../config/environment','./squareOdbc.controller','isAuthenticated','index','/:id','get','15s','test'];(function(_0x5c692a,_0x188b1b){var _0x1d40be=function(_0x2b910c){while(--_0x2b910c){_0x5c692a['push'](_0x5c692a['shift']());}};_0x1d40be(++_0x188b1b);}(_0x7d70,0xa6));var _0x07d7=function(_0x16634d,_0x2c0193){_0x16634d=_0x16634d-0x0;var _0x2d9cea=_0x7d70[_0x16634d];return _0x2d9cea;};'use strict';var multer=require(_0x07d7('0x0'));var util=require(_0x07d7('0x1'));var path=require('path');var timeout=require(_0x07d7('0x2'));var express=require(_0x07d7('0x3'));var router=express[_0x07d7('0x4')]();var fs_extra=require(_0x07d7('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x07d7('0x6'));var controller=require(_0x07d7('0x7'));router['get']('/',auth[_0x07d7('0x8')](),controller[_0x07d7('0x9')]);router['get'](_0x07d7('0xa'),auth[_0x07d7('0x8')](),controller['show']);router[_0x07d7('0xb')]('/:id/test',auth[_0x07d7('0x8')](),timeout(_0x07d7('0xc')),controller[_0x07d7('0xd')]);router[_0x07d7('0xe')]('/',auth['isAuthenticated'](),controller[_0x07d7('0xf')]);router[_0x07d7('0x10')](_0x07d7('0xa'),auth[_0x07d7('0x8')](),controller['update']);router[_0x07d7('0x11')](_0x07d7('0xa'),auth[_0x07d7('0x8')](),controller[_0x07d7('0x12')]);module[_0x07d7('0x13')]=router;