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 _0x5a42=['exports','multer','util','path','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesAccount.controller','index','get','/:id','isAuthenticated','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','put','update','destroy'];(function(_0x365e54,_0x44be74){var _0x13317a=function(_0x2d917f){while(--_0x2d917f){_0x365e54['push'](_0x365e54['shift']());}};_0x13317a(++_0x44be74);}(_0x5a42,0x9b));var _0x25a4=function(_0x324880,_0x3edcf4){_0x324880=_0x324880-0x0;var _0x1e7981=_0x5a42[_0x324880];return _0x1e7981;};'use strict';var multer=require(_0x25a4('0x0'));var util=require(_0x25a4('0x1'));var path=require(_0x25a4('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express[_0x25a4('0x3')]();var auth=require(_0x25a4('0x4'));var interaction=require(_0x25a4('0x5'));var config=require(_0x25a4('0x6'));var controller=require(_0x25a4('0x7'));router['get']('/',auth['isAuthenticated'](),controller[_0x25a4('0x8')]);router[_0x25a4('0x9')](_0x25a4('0xa'),auth[_0x25a4('0xb')](),controller['show']);router[_0x25a4('0x9')](_0x25a4('0xc'),auth[_0x25a4('0xb')](),controller[_0x25a4('0xd')]);router['get']('/:id/fields',auth[_0x25a4('0xb')](),controller[_0x25a4('0xe')]);router[_0x25a4('0xf')]('/',auth[_0x25a4('0xb')](),controller[_0x25a4('0x10')]);router[_0x25a4('0xf')]('/:id/configurations',auth[_0x25a4('0xb')](),controller[_0x25a4('0x11')]);router[_0x25a4('0x12')](_0x25a4('0xa'),auth[_0x25a4('0xb')](),controller[_0x25a4('0x13')]);router['delete'](_0x25a4('0xa'),auth['isAuthenticated'](),controller[_0x25a4('0x14')]);module[_0x25a4('0x15')]=router;