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 _0x0cef=['get','isAuthenticated','index','show','getSubjects','/:id/fields','getFields','post','create','put','/:id','update','delete','destroy','exports','multer','util','connect-timeout','express','Router','fs-extra','../../config/environment','./intFreshsalesConfiguration.controller'];(function(_0x1a80da,_0x1b532b){var _0x1c1df0=function(_0x21476f){while(--_0x21476f){_0x1a80da['push'](_0x1a80da['shift']());}};_0x1c1df0(++_0x1b532b);}(_0x0cef,0xc7));var _0xf0ce=function(_0x151935,_0x58df29){_0x151935=_0x151935-0x0;var _0x3c8f56=_0x0cef[_0x151935];return _0x3c8f56;};'use strict';var multer=require(_0xf0ce('0x0'));var util=require(_0xf0ce('0x1'));var path=require('path');var timeout=require(_0xf0ce('0x2'));var express=require(_0xf0ce('0x3'));var router=express[_0xf0ce('0x4')]();var fs_extra=require(_0xf0ce('0x5'));var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xf0ce('0x6'));var controller=require(_0xf0ce('0x7'));router[_0xf0ce('0x8')]('/',auth[_0xf0ce('0x9')](),controller[_0xf0ce('0xa')]);router[_0xf0ce('0x8')]('/:id',auth[_0xf0ce('0x9')](),controller[_0xf0ce('0xb')]);router['get']('/:id/subjects',auth[_0xf0ce('0x9')](),controller[_0xf0ce('0xc')]);router[_0xf0ce('0x8')]('/:id/descriptions',auth[_0xf0ce('0x9')](),controller['getDescriptions']);router[_0xf0ce('0x8')](_0xf0ce('0xd'),auth[_0xf0ce('0x9')](),controller[_0xf0ce('0xe')]);router[_0xf0ce('0xf')]('/',auth['isAuthenticated'](),controller[_0xf0ce('0x10')]);router[_0xf0ce('0x11')](_0xf0ce('0x12'),auth[_0xf0ce('0x9')](),controller[_0xf0ce('0x13')]);router[_0xf0ce('0x14')](_0xf0ce('0x12'),auth[_0xf0ce('0x9')](),controller[_0xf0ce('0x15')]);module[_0xf0ce('0x16')]=router;