b57fef60271d629df31c029093138e9425ccc243
[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 _0x5182=['fs-extra','../../components/interaction/service','./squareOdbc.controller','get','isAuthenticated','index','/:id','show','/:id/test','15s','test','post','create','delete','exports','multer','path','connect-timeout','express'];(function(_0xd44a39,_0x4ed474){var _0xfd4f20=function(_0x24fad0){while(--_0x24fad0){_0xd44a39['push'](_0xd44a39['shift']());}};_0xfd4f20(++_0x4ed474);}(_0x5182,0x18b));var _0x2518=function(_0x35cf58,_0x280717){_0x35cf58=_0x35cf58-0x0;var _0x3e8e65=_0x5182[_0x35cf58];return _0x3e8e65;};'use strict';var multer=require(_0x2518('0x0'));var util=require('util');var path=require(_0x2518('0x1'));var timeout=require(_0x2518('0x2'));var express=require(_0x2518('0x3'));var router=express['Router']();var fs_extra=require(_0x2518('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x2518('0x5'));var config=require('../../config/environment');var controller=require(_0x2518('0x6'));router[_0x2518('0x7')]('/',auth[_0x2518('0x8')](),controller[_0x2518('0x9')]);router[_0x2518('0x7')](_0x2518('0xa'),auth[_0x2518('0x8')](),controller[_0x2518('0xb')]);router[_0x2518('0x7')](_0x2518('0xc'),auth[_0x2518('0x8')](),timeout(_0x2518('0xd')),controller[_0x2518('0xe')]);router[_0x2518('0xf')]('/',auth['isAuthenticated'](),controller[_0x2518('0x10')]);router['put'](_0x2518('0xa'),auth[_0x2518('0x8')](),controller['update']);router[_0x2518('0x11')](_0x2518('0xa'),auth[_0x2518('0x8')](),controller['destroy']);module[_0x2518('0x12')]=router;