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 _0xb515=['/:id','show','create','put','update','delete','destroy','multer','util','path','connect-timeout','Router','../../components/interaction/service','./intSugarcrmField.controller','isAuthenticated','index','get'];(function(_0x215775,_0x15bc76){var _0x2c189d=function(_0x287040){while(--_0x287040){_0x215775['push'](_0x215775['shift']());}};_0x2c189d(++_0x15bc76);}(_0xb515,0xe4));var _0x5b51=function(_0x31cb5f,_0x2df766){_0x31cb5f=_0x31cb5f-0x0;var _0x586042=_0xb515[_0x31cb5f];return _0x586042;};'use strict';var multer=require(_0x5b51('0x0'));var util=require(_0x5b51('0x1'));var path=require(_0x5b51('0x2'));var timeout=require(_0x5b51('0x3'));var express=require('express');var router=express[_0x5b51('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x5b51('0x5'));var config=require('../../config/environment');var controller=require(_0x5b51('0x6'));router['get']('/',auth[_0x5b51('0x7')](),controller[_0x5b51('0x8')]);router[_0x5b51('0x9')](_0x5b51('0xa'),auth[_0x5b51('0x7')](),controller[_0x5b51('0xb')]);router['post']('/',auth[_0x5b51('0x7')](),controller[_0x5b51('0xc')]);router[_0x5b51('0xd')](_0x5b51('0xa'),auth['isAuthenticated'](),controller[_0x5b51('0xe')]);router[_0x5b51('0xf')](_0x5b51('0xa'),auth[_0x5b51('0x7')](),controller[_0x5b51('0x10')]);module['exports']=router;