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 _0xd52a=['get','isAuthenticated','post','put','delete','/:id','destroy','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller'];(function(_0x181e89,_0x1dd6c4){var _0x12fae0=function(_0x1c4dd1){while(--_0x1c4dd1){_0x181e89['push'](_0x181e89['shift']());}};_0x12fae0(++_0x1dd6c4);}(_0xd52a,0xca));var _0xad52=function(_0x1446ed,_0x3c8af5){_0x1446ed=_0x1446ed-0x0;var _0x51f6bf=_0xd52a[_0x1446ed];return _0x51f6bf;};'use strict';var multer=require('multer');var util=require(_0xad52('0x0'));var path=require('path');var timeout=require(_0xad52('0x1'));var express=require(_0xad52('0x2'));var router=express[_0xad52('0x3')]();var fs_extra=require('fs-extra');var auth=require(_0xad52('0x4'));var interaction=require(_0xad52('0x5'));var config=require(_0xad52('0x6'));var controller=require(_0xad52('0x7'));router['get']('/',auth['isAuthenticated'](),controller['index']);router[_0xad52('0x8')]('/:id',auth[_0xad52('0x9')](),controller['show']);router[_0xad52('0xa')]('/',auth[_0xad52('0x9')](),controller['create']);router[_0xad52('0xb')]('/:id',auth[_0xad52('0x9')](),controller['update']);router[_0xad52('0xc')](_0xad52('0xd'),auth[_0xad52('0x9')](),controller[_0xad52('0xe')]);module['exports']=router;