Built motion from commit ff78e754.|2.6.29
[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 _0xbded=['../../config/environment','./squareOdbc.controller','isAuthenticated','get','/:id','show','/:id/test','15s','test','post','create','put','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service'];(function(_0x5286b4,_0x1d0d05){var _0x2b7fa9=function(_0x45eb15){while(--_0x45eb15){_0x5286b4['push'](_0x5286b4['shift']());}};_0x2b7fa9(++_0x1d0d05);}(_0xbded,0x1d8));var _0xdbde=function(_0x3ff751,_0x2cdebf){_0x3ff751=_0x3ff751-0x0;var _0x43de15=_0xbded[_0x3ff751];return _0x43de15;};'use strict';var multer=require(_0xdbde('0x0'));var util=require(_0xdbde('0x1'));var path=require('path');var timeout=require(_0xdbde('0x2'));var express=require(_0xdbde('0x3'));var router=express[_0xdbde('0x4')]();var fs_extra=require(_0xdbde('0x5'));var auth=require(_0xdbde('0x6'));var interaction=require(_0xdbde('0x7'));var config=require(_0xdbde('0x8'));var controller=require(_0xdbde('0x9'));router['get']('/',auth[_0xdbde('0xa')](),controller['index']);router[_0xdbde('0xb')](_0xdbde('0xc'),auth['isAuthenticated'](),controller[_0xdbde('0xd')]);router[_0xdbde('0xb')](_0xdbde('0xe'),auth['isAuthenticated'](),timeout(_0xdbde('0xf')),controller[_0xdbde('0x10')]);router[_0xdbde('0x11')]('/',auth[_0xdbde('0xa')](),controller[_0xdbde('0x12')]);router[_0xdbde('0x13')](_0xdbde('0xc'),auth['isAuthenticated'](),controller[_0xdbde('0x14')]);router[_0xdbde('0x15')](_0xdbde('0xc'),auth[_0xdbde('0xa')](),controller[_0xdbde('0x16')]);module[_0xdbde('0x17')]=router;