8a791b7debc2b3d02b2a9423c63b060e762a6b89
[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 _0x6270=['path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesAccount.controller','isAuthenticated','index','show','/:id/configurations','get','/:id/fields','post','addConfiguration','update','destroy','exports','multer','util'];(function(_0x421566,_0x45fe15){var _0x3b6789=function(_0x19f3e9){while(--_0x19f3e9){_0x421566['push'](_0x421566['shift']());}};_0x3b6789(++_0x45fe15);}(_0x6270,0x14e));var _0x0627=function(_0x44fbf0,_0x29af3e){_0x44fbf0=_0x44fbf0-0x0;var _0x2de626=_0x6270[_0x44fbf0];return _0x2de626;};'use strict';var multer=require(_0x0627('0x0'));var util=require(_0x0627('0x1'));var path=require(_0x0627('0x2'));var timeout=require(_0x0627('0x3'));var express=require(_0x0627('0x4'));var router=express[_0x0627('0x5')]();var auth=require(_0x0627('0x6'));var interaction=require(_0x0627('0x7'));var config=require(_0x0627('0x8'));var controller=require(_0x0627('0x9'));router['get']('/',auth[_0x0627('0xa')](),controller[_0x0627('0xb')]);router['get']('/:id',auth[_0x0627('0xa')](),controller[_0x0627('0xc')]);router['get'](_0x0627('0xd'),auth[_0x0627('0xa')](),controller['getConfigurations']);router[_0x0627('0xe')](_0x0627('0xf'),auth[_0x0627('0xa')](),controller['getFields']);router[_0x0627('0x10')]('/',auth[_0x0627('0xa')](),controller['create']);router['post'](_0x0627('0xd'),auth[_0x0627('0xa')](),controller[_0x0627('0x11')]);router['put']('/:id',auth[_0x0627('0xa')](),controller[_0x0627('0x12')]);router['delete']('/:id',auth[_0x0627('0xa')](),controller[_0x0627('0x13')]);module[_0x0627('0x14')]=router;