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