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 _0x1cc3=['Router','../../components/auth/service','../../components/interaction/service','./intZohoConfiguration.controller','get','isAuthenticated','/:id','show','/:id/fields','getFields','getSubjects','/:id/descriptions','getDescriptions','post','create','put','update','destroy','exports','multer','util','connect-timeout'];(function(_0x1cd674,_0x8d3638){var _0x27928f=function(_0x5e3c70){while(--_0x5e3c70){_0x1cd674['push'](_0x1cd674['shift']());}};_0x27928f(++_0x8d3638);}(_0x1cc3,0x11b));var _0x31cc=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x1cc3[_0x122ef9];return _0x42fba0;};'use strict';var multer=require(_0x31cc('0x0'));var util=require(_0x31cc('0x1'));var path=require('path');var timeout=require(_0x31cc('0x2'));var express=require('express');var router=express[_0x31cc('0x3')]();var auth=require(_0x31cc('0x4'));var interaction=require(_0x31cc('0x5'));var config=require('../../config/environment');var controller=require(_0x31cc('0x6'));router[_0x31cc('0x7')]('/',auth[_0x31cc('0x8')](),controller['index']);router[_0x31cc('0x7')](_0x31cc('0x9'),auth[_0x31cc('0x8')](),controller[_0x31cc('0xa')]);router[_0x31cc('0x7')](_0x31cc('0xb'),auth[_0x31cc('0x8')](),controller[_0x31cc('0xc')]);router[_0x31cc('0x7')]('/:id/subjects',auth[_0x31cc('0x8')](),controller[_0x31cc('0xd')]);router[_0x31cc('0x7')](_0x31cc('0xe'),auth[_0x31cc('0x8')](),controller[_0x31cc('0xf')]);router[_0x31cc('0x10')]('/',auth[_0x31cc('0x8')](),controller[_0x31cc('0x11')]);router[_0x31cc('0x12')]('/:id',auth[_0x31cc('0x8')](),controller[_0x31cc('0x13')]);router['delete'](_0x31cc('0x9'),auth[_0x31cc('0x8')](),controller[_0x31cc('0x14')]);module[_0x31cc('0x15')]=router;