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