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 _0x45ae=['./intFreshsalesAccount.controller','get','/:id','isAuthenticated','show','/:id/configurations','/:id/fields','getFields','post','addConfiguration','put','update','delete','destroy','exports','multer','util','path','connect-timeout','../../components/auth/service','../../components/interaction/service'];(function(_0x4af026,_0x3b2855){var _0x510fce=function(_0x5345e3){while(--_0x5345e3){_0x4af026['push'](_0x4af026['shift']());}};_0x510fce(++_0x3b2855);}(_0x45ae,0x189));var _0xe45a=function(_0x120295,_0x103efe){_0x120295=_0x120295-0x0;var _0x13a826=_0x45ae[_0x120295];return _0x13a826;};'use strict';var multer=require(_0xe45a('0x0'));var util=require(_0xe45a('0x1'));var path=require(_0xe45a('0x2'));var timeout=require(_0xe45a('0x3'));var express=require('express');var router=express['Router']();var auth=require(_0xe45a('0x4'));var interaction=require(_0xe45a('0x5'));var config=require('../../config/environment');var controller=require(_0xe45a('0x6'));router[_0xe45a('0x7')]('/',auth['isAuthenticated'](),controller['index']);router['get'](_0xe45a('0x8'),auth[_0xe45a('0x9')](),controller[_0xe45a('0xa')]);router['get'](_0xe45a('0xb'),auth[_0xe45a('0x9')](),controller['getConfigurations']);router[_0xe45a('0x7')](_0xe45a('0xc'),auth[_0xe45a('0x9')](),controller[_0xe45a('0xd')]);router['post']('/',auth[_0xe45a('0x9')](),controller['create']);router[_0xe45a('0xe')](_0xe45a('0xb'),auth[_0xe45a('0x9')](),controller[_0xe45a('0xf')]);router[_0xe45a('0x10')](_0xe45a('0x8'),auth[_0xe45a('0x9')](),controller[_0xe45a('0x11')]);router[_0xe45a('0x12')]('/:id',auth[_0xe45a('0x9')](),controller[_0xe45a('0x13')]);module[_0xe45a('0x14')]=router;