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 _0x003d=['Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','isAuthenticated','/:id','post','create','update','delete','destroy','util','path','connect-timeout'];(function(_0x10291b,_0x518773){var _0x1d5fbe=function(_0x24df58){while(--_0x24df58){_0x10291b['push'](_0x10291b['shift']());}};_0x1d5fbe(++_0x518773);}(_0x003d,0xed));var _0xd003=function(_0x20715c,_0x29c829){_0x20715c=_0x20715c-0x0;var _0x4bb85e=_0x003d[_0x20715c];return _0x4bb85e;};'use strict';var multer=require('multer');var util=require(_0xd003('0x0'));var path=require(_0xd003('0x1'));var timeout=require(_0xd003('0x2'));var express=require('express');var router=express[_0xd003('0x3')]();var auth=require(_0xd003('0x4'));var interaction=require(_0xd003('0x5'));var config=require(_0xd003('0x6'));var controller=require(_0xd003('0x7'));router['get']('/',auth[_0xd003('0x8')](),controller['index']);router['get'](_0xd003('0x9'),auth['isAuthenticated'](),controller['show']);router[_0xd003('0xa')]('/',auth[_0xd003('0x8')](),controller[_0xd003('0xb')]);router['put'](_0xd003('0x9'),auth['isAuthenticated'](),controller[_0xd003('0xc')]);router[_0xd003('0xd')](_0xd003('0x9'),auth[_0xd003('0x8')](),controller[_0xd003('0xe')]);module['exports']=router;