Built motion from commit 0900f080.|2.5.45
[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 _0xa567=['get','index','isAuthenticated','show','15s','test','post','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../config/environment','./squareOdbc.controller'];(function(_0x14a52c,_0x34b93c){var _0x8533a1=function(_0x58365d){while(--_0x58365d){_0x14a52c['push'](_0x14a52c['shift']());}};_0x8533a1(++_0x34b93c);}(_0xa567,0xd0));var _0x7a56=function(_0x4890c4,_0x2c4e97){_0x4890c4=_0x4890c4-0x0;var _0x23d343=_0xa567[_0x4890c4];return _0x23d343;};'use strict';var multer=require(_0x7a56('0x0'));var util=require(_0x7a56('0x1'));var path=require('path');var timeout=require(_0x7a56('0x2'));var express=require(_0x7a56('0x3'));var router=express[_0x7a56('0x4')]();var fs_extra=require(_0x7a56('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x7a56('0x6'));var controller=require(_0x7a56('0x7'));router[_0x7a56('0x8')]('/',auth['isAuthenticated'](),controller[_0x7a56('0x9')]);router['get']('/:id',auth[_0x7a56('0xa')](),controller[_0x7a56('0xb')]);router['get']('/:id/test',auth[_0x7a56('0xa')](),timeout(_0x7a56('0xc')),controller[_0x7a56('0xd')]);router[_0x7a56('0xe')]('/',auth[_0x7a56('0xa')](),controller['create']);router['put']('/:id',auth[_0x7a56('0xa')](),controller['update']);router[_0x7a56('0xf')]('/:id',auth['isAuthenticated'](),controller[_0x7a56('0x10')]);module[_0x7a56('0x11')]=router;