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 _0x4ded=['./intFreshsalesAccount.controller','get','index','/:id','isAuthenticated','show','getFields','post','addConfiguration','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment'];(function(_0x3267fc,_0xe5cb8b){var _0x38ce0f=function(_0x152bf2){while(--_0x152bf2){_0x3267fc['push'](_0x3267fc['shift']());}};_0x38ce0f(++_0xe5cb8b);}(_0x4ded,0x116));var _0xd4de=function(_0x251a43,_0x2b48b0){_0x251a43=_0x251a43-0x0;var _0x45b54e=_0x4ded[_0x251a43];return _0x45b54e;};'use strict';var multer=require(_0xd4de('0x0'));var util=require(_0xd4de('0x1'));var path=require(_0xd4de('0x2'));var timeout=require(_0xd4de('0x3'));var express=require(_0xd4de('0x4'));var router=express[_0xd4de('0x5')]();var fs_extra=require(_0xd4de('0x6'));var auth=require(_0xd4de('0x7'));var interaction=require(_0xd4de('0x8'));var config=require(_0xd4de('0x9'));var controller=require(_0xd4de('0xa'));router[_0xd4de('0xb')]('/',auth['isAuthenticated'](),controller[_0xd4de('0xc')]);router[_0xd4de('0xb')](_0xd4de('0xd'),auth[_0xd4de('0xe')](),controller[_0xd4de('0xf')]);router[_0xd4de('0xb')]('/:id/configurations',auth[_0xd4de('0xe')](),controller['getConfigurations']);router['get']('/:id/fields',auth[_0xd4de('0xe')](),controller[_0xd4de('0x10')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0xd4de('0x11')]('/:id/configurations',auth[_0xd4de('0xe')](),controller[_0xd4de('0x12')]);router[_0xd4de('0x13')](_0xd4de('0xd'),auth[_0xd4de('0xe')](),controller[_0xd4de('0x14')]);router[_0xd4de('0x15')](_0xd4de('0xd'),auth[_0xd4de('0xe')](),controller[_0xd4de('0x16')]);module[_0xd4de('0x17')]=router;