Built motion from commit 52c8a02d.|2.6.29
[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 _0xa51b=['./squareOdbc.controller','get','isAuthenticated','index','/:id/test','15s','test','create','put','/:id','update','destroy','exports','multer','path','connect-timeout','express','fs-extra','../../components/auth/service','../../config/environment'];(function(_0x1d1779,_0x284147){var _0x2377e9=function(_0x299f6f){while(--_0x299f6f){_0x1d1779['push'](_0x1d1779['shift']());}};_0x2377e9(++_0x284147);}(_0xa51b,0x99));var _0xba51=function(_0x5d8048,_0x445203){_0x5d8048=_0x5d8048-0x0;var _0x3affba=_0xa51b[_0x5d8048];return _0x3affba;};'use strict';var multer=require(_0xba51('0x0'));var util=require('util');var path=require(_0xba51('0x1'));var timeout=require(_0xba51('0x2'));var express=require(_0xba51('0x3'));var router=express['Router']();var fs_extra=require(_0xba51('0x4'));var auth=require(_0xba51('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xba51('0x6'));var controller=require(_0xba51('0x7'));router[_0xba51('0x8')]('/',auth[_0xba51('0x9')](),controller[_0xba51('0xa')]);router[_0xba51('0x8')]('/:id',auth['isAuthenticated'](),controller['show']);router[_0xba51('0x8')](_0xba51('0xb'),auth[_0xba51('0x9')](),timeout(_0xba51('0xc')),controller[_0xba51('0xd')]);router['post']('/',auth[_0xba51('0x9')](),controller[_0xba51('0xe')]);router[_0xba51('0xf')](_0xba51('0x10'),auth[_0xba51('0x9')](),controller[_0xba51('0x11')]);router['delete'](_0xba51('0x10'),auth[_0xba51('0x9')](),controller[_0xba51('0x12')]);module[_0xba51('0x13')]=router;