b4e54d3d7d51811cede06963cebdc41d8dc511bc
[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 _0xab40=['../../components/interaction/service','../../config/environment','isAuthenticated','get','/:id','show','getConfigurations','/:id/fields','getFields','post','create','put','update','delete','destroy','exports','multer','util','Router','fs-extra','../../components/auth/service'];(function(_0x346737,_0x3e6081){var _0x1ade2e=function(_0x15e50e){while(--_0x15e50e){_0x346737['push'](_0x346737['shift']());}};_0x1ade2e(++_0x3e6081);}(_0xab40,0xcd));var _0x0ab4=function(_0x2575a3,_0xf80329){_0x2575a3=_0x2575a3-0x0;var _0x6b1bd0=_0xab40[_0x2575a3];return _0x6b1bd0;};'use strict';var multer=require(_0x0ab4('0x0'));var util=require(_0x0ab4('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x0ab4('0x2')]();var fs_extra=require(_0x0ab4('0x3'));var auth=require(_0x0ab4('0x4'));var interaction=require(_0x0ab4('0x5'));var config=require(_0x0ab4('0x6'));var controller=require('./intFreshsalesAccount.controller');router['get']('/',auth[_0x0ab4('0x7')](),controller['index']);router[_0x0ab4('0x8')](_0x0ab4('0x9'),auth[_0x0ab4('0x7')](),controller[_0x0ab4('0xa')]);router['get']('/:id/configurations',auth['isAuthenticated'](),controller[_0x0ab4('0xb')]);router[_0x0ab4('0x8')](_0x0ab4('0xc'),auth[_0x0ab4('0x7')](),controller[_0x0ab4('0xd')]);router[_0x0ab4('0xe')]('/',auth[_0x0ab4('0x7')](),controller[_0x0ab4('0xf')]);router['post']('/:id/configurations',auth[_0x0ab4('0x7')](),controller['addConfiguration']);router[_0x0ab4('0x10')](_0x0ab4('0x9'),auth[_0x0ab4('0x7')](),controller[_0x0ab4('0x11')]);router[_0x0ab4('0x12')](_0x0ab4('0x9'),auth[_0x0ab4('0x7')](),controller[_0x0ab4('0x13')]);module[_0x0ab4('0x14')]=router;