Built motion from commit ce97982f.|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 _0x00d7=['fs-extra','../../components/auth/service','../../config/environment','./squareOdbc.controller','isAuthenticated','index','/:id','get','/:id/test','15s','test','post','create','put','delete','destroy','exports','multer','util','path','connect-timeout','Router'];(function(_0x593bce,_0x484075){var _0x4f56c9=function(_0x583a02){while(--_0x583a02){_0x593bce['push'](_0x593bce['shift']());}};_0x4f56c9(++_0x484075);}(_0x00d7,0x7f));var _0x700d=function(_0xa6be5f,_0x279bea){_0xa6be5f=_0xa6be5f-0x0;var _0x3f88e6=_0x00d7[_0xa6be5f];return _0x3f88e6;};'use strict';var multer=require(_0x700d('0x0'));var util=require(_0x700d('0x1'));var path=require(_0x700d('0x2'));var timeout=require(_0x700d('0x3'));var express=require('express');var router=express[_0x700d('0x4')]();var fs_extra=require(_0x700d('0x5'));var auth=require(_0x700d('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0x700d('0x7'));var controller=require(_0x700d('0x8'));router['get']('/',auth[_0x700d('0x9')](),controller[_0x700d('0xa')]);router['get'](_0x700d('0xb'),auth[_0x700d('0x9')](),controller['show']);router[_0x700d('0xc')](_0x700d('0xd'),auth[_0x700d('0x9')](),timeout(_0x700d('0xe')),controller[_0x700d('0xf')]);router[_0x700d('0x10')]('/',auth['isAuthenticated'](),controller[_0x700d('0x11')]);router[_0x700d('0x12')](_0x700d('0xb'),auth[_0x700d('0x9')](),controller['update']);router[_0x700d('0x13')](_0x700d('0xb'),auth[_0x700d('0x9')](),controller[_0x700d('0x14')]);module[_0x700d('0x15')]=router;