Built motion from commit 7158bc59.|2.5.42
[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 _0x5de3=['destroy','multer','util','path','express','../../components/auth/service','../../components/interaction/service','./squareOdbc.controller','get','isAuthenticated','show','15s','test','post','put','/:id','update','delete'];(function(_0x2bf641,_0x36a6c7){var _0x460419=function(_0x4461ca){while(--_0x4461ca){_0x2bf641['push'](_0x2bf641['shift']());}};_0x460419(++_0x36a6c7);}(_0x5de3,0xa3));var _0x35de=function(_0x437aac,_0x7f0a20){_0x437aac=_0x437aac-0x0;var _0x4a3ee6=_0x5de3[_0x437aac];return _0x4a3ee6;};'use strict';var multer=require(_0x35de('0x0'));var util=require(_0x35de('0x1'));var path=require(_0x35de('0x2'));var timeout=require('connect-timeout');var express=require(_0x35de('0x3'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require(_0x35de('0x4'));var interaction=require(_0x35de('0x5'));var config=require('../../config/environment');var controller=require(_0x35de('0x6'));router[_0x35de('0x7')]('/',auth[_0x35de('0x8')](),controller['index']);router[_0x35de('0x7')]('/:id',auth[_0x35de('0x8')](),controller[_0x35de('0x9')]);router[_0x35de('0x7')]('/:id/test',auth[_0x35de('0x8')](),timeout(_0x35de('0xa')),controller[_0x35de('0xb')]);router[_0x35de('0xc')]('/',auth[_0x35de('0x8')](),controller['create']);router[_0x35de('0xd')](_0x35de('0xe'),auth['isAuthenticated'](),controller[_0x35de('0xf')]);router[_0x35de('0x10')](_0x35de('0xe'),auth['isAuthenticated'](),controller[_0x35de('0x11')]);module['exports']=router;