Built motion from commit (unavailable).|2.5.21
[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 _0xfd13=['/:id','show','/:id/test','15s','test','post','create','update','delete','exports','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index'];(function(_0x14b4b2,_0x42aed0){var _0x2710fd=function(_0x2bb074){while(--_0x2bb074){_0x14b4b2['push'](_0x14b4b2['shift']());}};_0x2710fd(++_0x42aed0);}(_0xfd13,0x13a));var _0x3fd1=function(_0x172732,_0x4af316){_0x172732=_0x172732-0x0;var _0x41522b=_0xfd13[_0x172732];return _0x41522b;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3fd1('0x0'));var timeout=require(_0x3fd1('0x1'));var express=require(_0x3fd1('0x2'));var router=express[_0x3fd1('0x3')]();var auth=require(_0x3fd1('0x4'));var interaction=require(_0x3fd1('0x5'));var config=require('../../config/environment');var controller=require('./squareOdbc.controller');router[_0x3fd1('0x6')]('/',auth[_0x3fd1('0x7')](),controller[_0x3fd1('0x8')]);router['get'](_0x3fd1('0x9'),auth['isAuthenticated'](),controller[_0x3fd1('0xa')]);router[_0x3fd1('0x6')](_0x3fd1('0xb'),auth[_0x3fd1('0x7')](),timeout(_0x3fd1('0xc')),controller[_0x3fd1('0xd')]);router[_0x3fd1('0xe')]('/',auth['isAuthenticated'](),controller[_0x3fd1('0xf')]);router['put'](_0x3fd1('0x9'),auth[_0x3fd1('0x7')](),controller[_0x3fd1('0x10')]);router[_0x3fd1('0x11')](_0x3fd1('0x9'),auth['isAuthenticated'](),controller['destroy']);module[_0x3fd1('0x12')]=router;