Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / intSugarcrmConfiguration / 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 _0xccc3=['util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intSugarcrmConfiguration.controller','isAuthenticated','index','show','/:id/fields','get','/:id/subjects','/:id/descriptions','getDescriptions','post','create','delete','/:id','exports','multer'];(function(_0x19e928,_0x26a0e4){var _0x4e941f=function(_0x52a5cd){while(--_0x52a5cd){_0x19e928['push'](_0x19e928['shift']());}};_0x4e941f(++_0x26a0e4);}(_0xccc3,0xdb));var _0x3ccc=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0xccc3[_0x57b54c];return _0x59cc19;};'use strict';var multer=require(_0x3ccc('0x0'));var util=require(_0x3ccc('0x1'));var path=require(_0x3ccc('0x2'));var timeout=require(_0x3ccc('0x3'));var express=require(_0x3ccc('0x4'));var router=express[_0x3ccc('0x5')]();var fs_extra=require('fs-extra');var auth=require(_0x3ccc('0x6'));var interaction=require(_0x3ccc('0x7'));var config=require('../../config/environment');var controller=require(_0x3ccc('0x8'));router['get']('/',auth[_0x3ccc('0x9')](),controller[_0x3ccc('0xa')]);router['get']('/:id',auth[_0x3ccc('0x9')](),controller[_0x3ccc('0xb')]);router['get'](_0x3ccc('0xc'),auth[_0x3ccc('0x9')](),controller['getFields']);router[_0x3ccc('0xd')](_0x3ccc('0xe'),auth[_0x3ccc('0x9')](),controller['getSubjects']);router[_0x3ccc('0xd')](_0x3ccc('0xf'),auth['isAuthenticated'](),controller[_0x3ccc('0x10')]);router[_0x3ccc('0x11')]('/',auth[_0x3ccc('0x9')](),controller[_0x3ccc('0x12')]);router['put']('/:id',auth['isAuthenticated'](),controller['update']);router[_0x3ccc('0x13')](_0x3ccc('0x14'),auth[_0x3ccc('0x9')](),controller['destroy']);module[_0x3ccc('0x15')]=router;