Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / intSugarcrmField / 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 _0x1f02=['delete','destroy','exports','multer','Router','fs-extra','../../components/auth/service','../../config/environment','get','isAuthenticated','index','show','post','/:id','update'];(function(_0x199572,_0x33e667){var _0x13cfa3=function(_0x53c075){while(--_0x53c075){_0x199572['push'](_0x199572['shift']());}};_0x13cfa3(++_0x33e667);}(_0x1f02,0x15c));var _0x21f0=function(_0x44356b,_0x434d06){_0x44356b=_0x44356b-0x0;var _0x47c4ec=_0x1f02[_0x44356b];return _0x47c4ec;};'use strict';var multer=require(_0x21f0('0x0'));var util=require('util');var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0x21f0('0x1')]();var fs_extra=require(_0x21f0('0x2'));var auth=require(_0x21f0('0x3'));var interaction=require('../../components/interaction/service');var config=require(_0x21f0('0x4'));var controller=require('./intSugarcrmField.controller');router[_0x21f0('0x5')]('/',auth[_0x21f0('0x6')](),controller[_0x21f0('0x7')]);router[_0x21f0('0x5')]('/:id',auth['isAuthenticated'](),controller[_0x21f0('0x8')]);router[_0x21f0('0x9')]('/',auth[_0x21f0('0x6')](),controller['create']);router['put'](_0x21f0('0xa'),auth[_0x21f0('0x6')](),controller[_0x21f0('0xb')]);router[_0x21f0('0xc')](_0x21f0('0xa'),auth['isAuthenticated'](),controller[_0x21f0('0xd')]);module[_0x21f0('0xe')]=router;