Built motion from commit (unavailable).|2.5.0
[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 _0x10be=['get','index','/:id','isAuthenticated','show','/:id/test','test','post','create','update','delete','destroy','exports','multer','path','connect-timeout','Router','../../components/interaction/service','../../config/environment','./squareOdbc.controller'];(function(_0x41d15a,_0x129763){var _0x36a469=function(_0x7fa686){while(--_0x7fa686){_0x41d15a['push'](_0x41d15a['shift']());}};_0x36a469(++_0x129763);}(_0x10be,0x161));var _0xe10b=function(_0x416e89,_0x117957){_0x416e89=_0x416e89-0x0;var _0x31e5c5=_0x10be[_0x416e89];return _0x31e5c5;};'use strict';var multer=require(_0xe10b('0x0'));var util=require('util');var path=require(_0xe10b('0x1'));var timeout=require(_0xe10b('0x2'));var express=require('express');var router=express[_0xe10b('0x3')]();var auth=require('../../components/auth/service');var interaction=require(_0xe10b('0x4'));var config=require(_0xe10b('0x5'));var controller=require(_0xe10b('0x6'));router[_0xe10b('0x7')]('/',auth['isAuthenticated'](),controller[_0xe10b('0x8')]);router[_0xe10b('0x7')](_0xe10b('0x9'),auth[_0xe10b('0xa')](),controller[_0xe10b('0xb')]);router[_0xe10b('0x7')](_0xe10b('0xc'),auth[_0xe10b('0xa')](),timeout('15s'),controller[_0xe10b('0xd')]);router[_0xe10b('0xe')]('/',auth[_0xe10b('0xa')](),controller[_0xe10b('0xf')]);router['put'](_0xe10b('0x9'),auth[_0xe10b('0xa')](),controller[_0xe10b('0x10')]);router[_0xe10b('0x11')]('/:id',auth[_0xe10b('0xa')](),controller[_0xe10b('0x12')]);module[_0xe10b('0x13')]=router;