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