75bb446518dfb06cdedafc5f5594debb793f314a
[motion2.git] / server / api / intFreshsalesAccount / index.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x63a5=['destroy','exports','multer','util','path','express','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','/:id/configurations','getConfigurations','/:id/fields','getFields','post','create','put','update','delete'];(function(_0x46f781,_0x5840fc){var _0x3cec8c=function(_0x2d3489){while(--_0x2d3489){_0x46f781['push'](_0x46f781['shift']());}};_0x3cec8c(++_0x5840fc);}(_0x63a5,0x18e));var _0x563a=function(_0xda464c,_0x26e47d){_0xda464c=_0xda464c-0x0;var _0x19e222=_0x63a5[_0xda464c];return _0x19e222;};'use strict';var multer=require(_0x563a('0x0'));var util=require(_0x563a('0x1'));var path=require(_0x563a('0x2'));var timeout=require('connect-timeout');var express=require(_0x563a('0x3'));var router=express['Router']();var fs_extra=require(_0x563a('0x4'));var auth=require(_0x563a('0x5'));var interaction=require(_0x563a('0x6'));var config=require(_0x563a('0x7'));var controller=require('./intFreshsalesAccount.controller');router['get']('/',auth[_0x563a('0x8')](),controller['index']);router[_0x563a('0x9')](_0x563a('0xa'),auth['isAuthenticated'](),controller['show']);router[_0x563a('0x9')](_0x563a('0xb'),auth[_0x563a('0x8')](),controller[_0x563a('0xc')]);router[_0x563a('0x9')](_0x563a('0xd'),auth[_0x563a('0x8')](),controller[_0x563a('0xe')]);router[_0x563a('0xf')]('/',auth[_0x563a('0x8')](),controller[_0x563a('0x10')]);router[_0x563a('0xf')](_0x563a('0xb'),auth[_0x563a('0x8')](),controller['addConfiguration']);router[_0x563a('0x11')](_0x563a('0xa'),auth[_0x563a('0x8')](),controller[_0x563a('0x12')]);router[_0x563a('0x13')](_0x563a('0xa'),auth['isAuthenticated'](),controller[_0x563a('0x14')]);module[_0x563a('0x15')]=router;