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 _0xb180=['/:id/configurations','getConfigurations','/:id/fields','getFields','post','addConfiguration','/:id','exports','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intZohoAccount.controller','get','isAuthenticated','index','show'];(function(_0x2ca574,_0x553a78){var _0x2bdf88=function(_0x5009c8){while(--_0x5009c8){_0x2ca574['push'](_0x2ca574['shift']());}};_0x2bdf88(++_0x553a78);}(_0xb180,0x112));var _0x0b18=function(_0x44a9bc,_0x3cca3c){_0x44a9bc=_0x44a9bc-0x0;var _0x4c18b1=_0xb180[_0x44a9bc];return _0x4c18b1;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x0b18('0x0'));var timeout=require('connect-timeout');var express=require(_0x0b18('0x1'));var router=express[_0x0b18('0x2')]();var auth=require(_0x0b18('0x3'));var interaction=require(_0x0b18('0x4'));var config=require(_0x0b18('0x5'));var controller=require(_0x0b18('0x6'));router[_0x0b18('0x7')]('/',auth[_0x0b18('0x8')](),controller[_0x0b18('0x9')]);router[_0x0b18('0x7')]('/:id',auth[_0x0b18('0x8')](),controller[_0x0b18('0xa')]);router[_0x0b18('0x7')](_0x0b18('0xb'),auth['isAuthenticated'](),controller[_0x0b18('0xc')]);router['get'](_0x0b18('0xd'),auth['isAuthenticated'](),controller[_0x0b18('0xe')]);router['post']('/',auth[_0x0b18('0x8')](),controller['create']);router[_0x0b18('0xf')](_0x0b18('0xb'),auth[_0x0b18('0x8')](),controller[_0x0b18('0x10')]);router['put'](_0x0b18('0x11'),auth[_0x0b18('0x8')](),controller['update']);router['delete'](_0x0b18('0x11'),auth[_0x0b18('0x8')](),controller['destroy']);module[_0x0b18('0x12')]=router;