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 _0xdc1f=['get','isAuthenticated','/:id','show','post','create','update','delete','multer','util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller'];(function(_0x3d7090,_0x585c3c){var _0x422ac7=function(_0x2fc76b){while(--_0x2fc76b){_0x3d7090['push'](_0x3d7090['shift']());}};_0x422ac7(++_0x585c3c);}(_0xdc1f,0xd4));var _0xfdc1=function(_0x2b5378,_0x3ff131){_0x2b5378=_0x2b5378-0x0;var _0x525b5a=_0xdc1f[_0x2b5378];return _0x525b5a;};'use strict';var multer=require(_0xfdc1('0x0'));var util=require(_0xfdc1('0x1'));var path=require('path');var timeout=require(_0xfdc1('0x2'));var express=require(_0xfdc1('0x3'));var router=express[_0xfdc1('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xfdc1('0x5'));var interaction=require(_0xfdc1('0x6'));var config=require(_0xfdc1('0x7'));var controller=require(_0xfdc1('0x8'));router[_0xfdc1('0x9')]('/',auth[_0xfdc1('0xa')](),controller['index']);router[_0xfdc1('0x9')](_0xfdc1('0xb'),auth[_0xfdc1('0xa')](),controller[_0xfdc1('0xc')]);router[_0xfdc1('0xd')]('/',auth[_0xfdc1('0xa')](),controller[_0xfdc1('0xe')]);router['put'](_0xfdc1('0xb'),auth['isAuthenticated'](),controller[_0xfdc1('0xf')]);router[_0xfdc1('0x10')](_0xfdc1('0xb'),auth[_0xfdc1('0xa')](),controller['destroy']);module['exports']=router;