Built motion from commit ddca4d0d.|2.5.47
[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 _0xffbe=['fs-extra','../../components/auth/service','../../config/environment','get','index','/:id','isAuthenticated','show','/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','getFields','post','create','update','destroy','util','path','connect-timeout','express','Router'];(function(_0x4bcf38,_0x3c12be){var _0x4a89be=function(_0x3215a6){while(--_0x3215a6){_0x4bcf38['push'](_0x4bcf38['shift']());}};_0x4a89be(++_0x3c12be);}(_0xffbe,0x69));var _0xeffb=function(_0x458827,_0x370d25){_0x458827=_0x458827-0x0;var _0x2e1b73=_0xffbe[_0x458827];return _0x2e1b73;};'use strict';var multer=require('multer');var util=require(_0xeffb('0x0'));var path=require(_0xeffb('0x1'));var timeout=require(_0xeffb('0x2'));var express=require(_0xeffb('0x3'));var router=express[_0xeffb('0x4')]();var fs_extra=require(_0xeffb('0x5'));var auth=require(_0xeffb('0x6'));var interaction=require('../../components/interaction/service');var config=require(_0xeffb('0x7'));var controller=require('./intFreshsalesConfiguration.controller');router[_0xeffb('0x8')]('/',auth['isAuthenticated'](),controller[_0xeffb('0x9')]);router['get'](_0xeffb('0xa'),auth[_0xeffb('0xb')](),controller[_0xeffb('0xc')]);router['get'](_0xeffb('0xd'),auth[_0xeffb('0xb')](),controller[_0xeffb('0xe')]);router[_0xeffb('0x8')](_0xeffb('0xf'),auth[_0xeffb('0xb')](),controller[_0xeffb('0x10')]);router[_0xeffb('0x8')]('/:id/fields',auth[_0xeffb('0xb')](),controller[_0xeffb('0x11')]);router[_0xeffb('0x12')]('/',auth[_0xeffb('0xb')](),controller[_0xeffb('0x13')]);router['put'](_0xeffb('0xa'),auth[_0xeffb('0xb')](),controller[_0xeffb('0x14')]);router['delete'](_0xeffb('0xa'),auth[_0xeffb('0xb')](),controller[_0xeffb('0x15')]);module['exports']=router;