Built motion from commit (unavailable).|2.5.30
[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 _0xcbb3=['/:id/subjects','getSubjects','/:id/descriptions','getDescriptions','getFields','post','create','put','update','delete','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated','index','/:id','show'];(function(_0xd723,_0x164010){var _0x5179d2=function(_0x43b1cb){while(--_0x43b1cb){_0xd723['push'](_0xd723['shift']());}};_0x5179d2(++_0x164010);}(_0xcbb3,0x130));var _0x3cbb=function(_0x374e7d,_0x486502){_0x374e7d=_0x374e7d-0x0;var _0x51b529=_0xcbb3[_0x374e7d];return _0x51b529;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x3cbb('0x0'));var timeout=require('connect-timeout');var express=require(_0x3cbb('0x1'));var router=express[_0x3cbb('0x2')]();var fs_extra=require('fs-extra');var auth=require(_0x3cbb('0x3'));var interaction=require(_0x3cbb('0x4'));var config=require(_0x3cbb('0x5'));var controller=require('./intFreshsalesConfiguration.controller');router[_0x3cbb('0x6')]('/',auth[_0x3cbb('0x7')](),controller[_0x3cbb('0x8')]);router[_0x3cbb('0x6')](_0x3cbb('0x9'),auth[_0x3cbb('0x7')](),controller[_0x3cbb('0xa')]);router[_0x3cbb('0x6')](_0x3cbb('0xb'),auth[_0x3cbb('0x7')](),controller[_0x3cbb('0xc')]);router[_0x3cbb('0x6')](_0x3cbb('0xd'),auth['isAuthenticated'](),controller[_0x3cbb('0xe')]);router[_0x3cbb('0x6')]('/:id/fields',auth[_0x3cbb('0x7')](),controller[_0x3cbb('0xf')]);router[_0x3cbb('0x10')]('/',auth[_0x3cbb('0x7')](),controller[_0x3cbb('0x11')]);router[_0x3cbb('0x12')](_0x3cbb('0x9'),auth[_0x3cbb('0x7')](),controller[_0x3cbb('0x13')]);router[_0x3cbb('0x14')](_0x3cbb('0x9'),auth[_0x3cbb('0x7')](),controller['destroy']);module['exports']=router;