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