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