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