08d82a9af88aecbaa5acea60cccde0228692057a
[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 _0xc9bb=['isAuthenticated','/:id','show','/:id/test','test','create','put','delete','destroy','exports','multer','util','express','fs-extra','../../config/environment','./squareOdbc.controller','get'];(function(_0x8cb2f9,_0x2b8706){var _0x164887=function(_0x1812cc){while(--_0x1812cc){_0x8cb2f9['push'](_0x8cb2f9['shift']());}};_0x164887(++_0x2b8706);}(_0xc9bb,0xb4));var _0xbc9b=function(_0x308408,_0x37d440){_0x308408=_0x308408-0x0;var _0x9dc073=_0xc9bb[_0x308408];return _0x9dc073;};'use strict';var multer=require(_0xbc9b('0x0'));var util=require(_0xbc9b('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0xbc9b('0x2'));var router=express['Router']();var fs_extra=require(_0xbc9b('0x3'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xbc9b('0x4'));var controller=require(_0xbc9b('0x5'));router[_0xbc9b('0x6')]('/',auth[_0xbc9b('0x7')](),controller['index']);router[_0xbc9b('0x6')](_0xbc9b('0x8'),auth[_0xbc9b('0x7')](),controller[_0xbc9b('0x9')]);router[_0xbc9b('0x6')](_0xbc9b('0xa'),auth['isAuthenticated'](),timeout('15s'),controller[_0xbc9b('0xb')]);router['post']('/',auth['isAuthenticated'](),controller[_0xbc9b('0xc')]);router[_0xbc9b('0xd')](_0xbc9b('0x8'),auth['isAuthenticated'](),controller['update']);router[_0xbc9b('0xe')]('/:id',auth[_0xbc9b('0x7')](),controller[_0xbc9b('0xf')]);module[_0xbc9b('0x10')]=router;