1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0xac9d=['../../config/environment','get','index','/:id','isAuthenticated','show','post','create','put','update','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service'];(function(_0x26b25d,_0x30969a){var _0x5b9b5e=function(_0x4fef11){while(--_0x4fef11){_0x26b25d['push'](_0x26b25d['shift']());}};_0x5b9b5e(++_0x30969a);}(_0xac9d,0x14d));var _0xdac9=function(_0x533437,_0x4d59d1){_0x533437=_0x533437-0x0;var _0x53f4ce=_0xac9d[_0x533437];return _0x53f4ce;};'use strict';var multer=require(_0xdac9('0x0'));var util=require(_0xdac9('0x1'));var path=require(_0xdac9('0x2'));var express=require(_0xdac9('0x3'));var router=express[_0xdac9('0x4')]();var auth=require(_0xdac9('0x5'));var interaction=require(_0xdac9('0x6'));var config=require(_0xdac9('0x7'));var controller=require('./squareOdbc.controller');router[_0xdac9('0x8')]('/',auth['isAuthenticated'](),controller[_0xdac9('0x9')]);router[_0xdac9('0x8')](_0xdac9('0xa'),auth[_0xdac9('0xb')](),controller[_0xdac9('0xc')]);router[_0xdac9('0x8')]('/:id/test',auth[_0xdac9('0xb')](),controller['test']);router[_0xdac9('0xd')]('/',auth[_0xdac9('0xb')](),controller[_0xdac9('0xe')]);router[_0xdac9('0xf')](_0xdac9('0xa'),auth[_0xdac9('0xb')](),controller[_0xdac9('0x10')]);router[_0xdac9('0x11')](_0xdac9('0xa'),auth['isAuthenticated'](),controller[_0xdac9('0x12')]);module[_0xdac9('0x13')]=router;