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 _0x159e=['update','delete','destroy','exports','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./intZohoConfiguration.controller','get','isAuthenticated','index','show','/:id/fields','getFields','/:id/subjects','getSubjects','/:id/descriptions','create','put','/:id'];(function(_0x161583,_0x14f575){var _0x23b2bc=function(_0x50bcda){while(--_0x50bcda){_0x161583['push'](_0x161583['shift']());}};_0x23b2bc(++_0x14f575);}(_0x159e,0x138));var _0xe159=function(_0x1ff215,_0x906e09){_0x1ff215=_0x1ff215-0x0;var _0x32a6a4=_0x159e[_0x1ff215];return _0x32a6a4;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0xe159('0x0'));var timeout=require(_0xe159('0x1'));var express=require(_0xe159('0x2'));var router=express['Router']();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0xe159('0x3'));var config=require(_0xe159('0x4'));var controller=require(_0xe159('0x5'));router[_0xe159('0x6')]('/',auth[_0xe159('0x7')](),controller[_0xe159('0x8')]);router[_0xe159('0x6')]('/:id',auth[_0xe159('0x7')](),controller[_0xe159('0x9')]);router[_0xe159('0x6')](_0xe159('0xa'),auth[_0xe159('0x7')](),controller[_0xe159('0xb')]);router[_0xe159('0x6')](_0xe159('0xc'),auth['isAuthenticated'](),controller[_0xe159('0xd')]);router[_0xe159('0x6')](_0xe159('0xe'),auth[_0xe159('0x7')](),controller['getDescriptions']);router['post']('/',auth[_0xe159('0x7')](),controller[_0xe159('0xf')]);router[_0xe159('0x10')](_0xe159('0x11'),auth['isAuthenticated'](),controller[_0xe159('0x12')]);router[_0xe159('0x13')]('/:id',auth[_0xe159('0x7')](),controller[_0xe159('0x14')]);module[_0xe159('0x15')]=router;