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 _0xe3bb=['post','create','addConfiguration','put','/:id','destroy','exports','util','path','connect-timeout','express','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','show','/:id/configurations','getConfigurations','getFields'];(function(_0x4c7935,_0x4a53fb){var _0x30651d=function(_0x12f35f){while(--_0x12f35f){_0x4c7935['push'](_0x4c7935['shift']());}};_0x30651d(++_0x4a53fb);}(_0xe3bb,0xe3));var _0xbe3b=function(_0x1e6bdf,_0x377d56){_0x1e6bdf=_0x1e6bdf-0x0;var _0xf1d42f=_0xe3bb[_0x1e6bdf];return _0xf1d42f;};'use strict';var multer=require('multer');var util=require(_0xbe3b('0x0'));var path=require(_0xbe3b('0x1'));var timeout=require(_0xbe3b('0x2'));var express=require(_0xbe3b('0x3'));var router=express['Router']();var auth=require(_0xbe3b('0x4'));var interaction=require(_0xbe3b('0x5'));var config=require(_0xbe3b('0x6'));var controller=require('./intSugarcrmAccount.controller');router[_0xbe3b('0x7')]('/',auth[_0xbe3b('0x8')](),controller['index']);router[_0xbe3b('0x7')]('/:id',auth[_0xbe3b('0x8')](),controller[_0xbe3b('0x9')]);router['get'](_0xbe3b('0xa'),auth[_0xbe3b('0x8')](),controller[_0xbe3b('0xb')]);router[_0xbe3b('0x7')]('/:id/fields',auth[_0xbe3b('0x8')](),controller[_0xbe3b('0xc')]);router[_0xbe3b('0xd')]('/',auth[_0xbe3b('0x8')](),controller[_0xbe3b('0xe')]);router[_0xbe3b('0xd')](_0xbe3b('0xa'),auth[_0xbe3b('0x8')](),controller[_0xbe3b('0xf')]);router[_0xbe3b('0x10')](_0xbe3b('0x11'),auth[_0xbe3b('0x8')](),controller['update']);router['delete'](_0xbe3b('0x11'),auth[_0xbe3b('0x8')](),controller[_0xbe3b('0x12')]);module[_0xbe3b('0x13')]=router;