Built motion from commit 8c034dcd.|2.6.31
[motion2.git] / server / api / intFreshsalesConfiguration / 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 _0xf70c=['fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intFreshsalesConfiguration.controller','get','isAuthenticated','index','/:id','show','/:id/subjects','getSubjects','getDescriptions','/:id/fields','post','put','update','delete','destroy','exports','multer','Router'];(function(_0x451d2e,_0xec68e2){var _0x4aec0b=function(_0x17174d){while(--_0x17174d){_0x451d2e['push'](_0x451d2e['shift']());}};_0x4aec0b(++_0xec68e2);}(_0xf70c,0x82));var _0xcf70=function(_0x2d6658,_0x5a3f03){_0x2d6658=_0x2d6658-0x0;var _0x1d0312=_0xf70c[_0x2d6658];return _0x1d0312;};'use strict';var multer=require(_0xcf70('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xcf70('0x1')]();var fs_extra=require(_0xcf70('0x2'));var auth=require(_0xcf70('0x3'));var interaction=require(_0xcf70('0x4'));var config=require(_0xcf70('0x5'));var controller=require(_0xcf70('0x6'));router[_0xcf70('0x7')]('/',auth[_0xcf70('0x8')](),controller[_0xcf70('0x9')]);router[_0xcf70('0x7')](_0xcf70('0xa'),auth[_0xcf70('0x8')](),controller[_0xcf70('0xb')]);router[_0xcf70('0x7')](_0xcf70('0xc'),auth[_0xcf70('0x8')](),controller[_0xcf70('0xd')]);router[_0xcf70('0x7')]('/:id/descriptions',auth[_0xcf70('0x8')](),controller[_0xcf70('0xe')]);router[_0xcf70('0x7')](_0xcf70('0xf'),auth['isAuthenticated'](),controller['getFields']);router[_0xcf70('0x10')]('/',auth[_0xcf70('0x8')](),controller['create']);router[_0xcf70('0x11')]('/:id',auth['isAuthenticated'](),controller[_0xcf70('0x12')]);router[_0xcf70('0x13')](_0xcf70('0xa'),auth[_0xcf70('0x8')](),controller[_0xcf70('0x14')]);module[_0xcf70('0x15')]=router;