Built motion from commit 9e1399f3.|2.5.37
[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 _0xa543=['test','post','create','put','delete','exports','util','connect-timeout','express','Router','fs-extra','../../components/interaction/service','./squareOdbc.controller','get','isAuthenticated','index','/:id','show','/:id/test'];(function(_0x568995,_0x542d4b){var _0x22e5dd=function(_0x9a68a0){while(--_0x9a68a0){_0x568995['push'](_0x568995['shift']());}};_0x22e5dd(++_0x542d4b);}(_0xa543,0x16f));var _0x3a54=function(_0x8af5e2,_0x2fb5d0){_0x8af5e2=_0x8af5e2-0x0;var _0x4a8a99=_0xa543[_0x8af5e2];return _0x4a8a99;};'use strict';var multer=require('multer');var util=require(_0x3a54('0x0'));var path=require('path');var timeout=require(_0x3a54('0x1'));var express=require(_0x3a54('0x2'));var router=express[_0x3a54('0x3')]();var fs_extra=require(_0x3a54('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0x3a54('0x5'));var config=require('../../config/environment');var controller=require(_0x3a54('0x6'));router[_0x3a54('0x7')]('/',auth[_0x3a54('0x8')](),controller[_0x3a54('0x9')]);router[_0x3a54('0x7')](_0x3a54('0xa'),auth['isAuthenticated'](),controller[_0x3a54('0xb')]);router[_0x3a54('0x7')](_0x3a54('0xc'),auth['isAuthenticated'](),timeout('15s'),controller[_0x3a54('0xd')]);router[_0x3a54('0xe')]('/',auth['isAuthenticated'](),controller[_0x3a54('0xf')]);router[_0x3a54('0x10')](_0x3a54('0xa'),auth[_0x3a54('0x8')](),controller['update']);router[_0x3a54('0x11')](_0x3a54('0xa'),auth[_0x3a54('0x8')](),controller['destroy']);module[_0x3a54('0x12')]=router;