Built motion from commit (unavailable).|2.5.14
[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 _0xa322=['getFields','post','create','addConfiguration','put','update','delete','destroy','multer','util','express','Router','../../config/environment','get','isAuthenticated','/:id','show','/:id/configurations','getConfigurations','/:id/fields'];(function(_0xdc3756,_0x12752e){var _0x3047ec=function(_0x1e8ab7){while(--_0x1e8ab7){_0xdc3756['push'](_0xdc3756['shift']());}};_0x3047ec(++_0x12752e);}(_0xa322,0xd0));var _0x2a32=function(_0x1b9ea2,_0x2f9094){_0x1b9ea2=_0x1b9ea2-0x0;var _0x5ac90f=_0xa322[_0x1b9ea2];return _0x5ac90f;};'use strict';var multer=require(_0x2a32('0x0'));var util=require(_0x2a32('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require(_0x2a32('0x2'));var router=express[_0x2a32('0x3')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0x2a32('0x4'));var controller=require('./intFreshsalesAccount.controller');router[_0x2a32('0x5')]('/',auth[_0x2a32('0x6')](),controller['index']);router[_0x2a32('0x5')](_0x2a32('0x7'),auth['isAuthenticated'](),controller[_0x2a32('0x8')]);router[_0x2a32('0x5')](_0x2a32('0x9'),auth[_0x2a32('0x6')](),controller[_0x2a32('0xa')]);router[_0x2a32('0x5')](_0x2a32('0xb'),auth['isAuthenticated'](),controller[_0x2a32('0xc')]);router[_0x2a32('0xd')]('/',auth['isAuthenticated'](),controller[_0x2a32('0xe')]);router['post'](_0x2a32('0x9'),auth[_0x2a32('0x6')](),controller[_0x2a32('0xf')]);router[_0x2a32('0x10')](_0x2a32('0x7'),auth['isAuthenticated'](),controller[_0x2a32('0x11')]);router[_0x2a32('0x12')](_0x2a32('0x7'),auth[_0x2a32('0x6')](),controller[_0x2a32('0x13')]);module['exports']=router;