Built motion from commit 753c950e.|2.5.42
[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 _0x8f63=['express','Router','fs-extra','../../components/auth/service','../../components/interaction/service','./intSugarcrmField.controller','get','index','/:id','isAuthenticated','show','post','put','update','delete','destroy','exports','path','connect-timeout'];(function(_0x56c197,_0x35ba1d){var _0x2689ef=function(_0x2d050f){while(--_0x2d050f){_0x56c197['push'](_0x56c197['shift']());}};_0x2689ef(++_0x35ba1d);}(_0x8f63,0x11b));var _0x38f6=function(_0x34bc6c,_0x10d089){_0x34bc6c=_0x34bc6c-0x0;var _0x168820=_0x8f63[_0x34bc6c];return _0x168820;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x38f6('0x0'));var timeout=require(_0x38f6('0x1'));var express=require(_0x38f6('0x2'));var router=express[_0x38f6('0x3')]();var fs_extra=require(_0x38f6('0x4'));var auth=require(_0x38f6('0x5'));var interaction=require(_0x38f6('0x6'));var config=require('../../config/environment');var controller=require(_0x38f6('0x7'));router[_0x38f6('0x8')]('/',auth['isAuthenticated'](),controller[_0x38f6('0x9')]);router[_0x38f6('0x8')](_0x38f6('0xa'),auth[_0x38f6('0xb')](),controller[_0x38f6('0xc')]);router[_0x38f6('0xd')]('/',auth[_0x38f6('0xb')](),controller['create']);router[_0x38f6('0xe')](_0x38f6('0xa'),auth[_0x38f6('0xb')](),controller[_0x38f6('0xf')]);router[_0x38f6('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x38f6('0x11')]);module[_0x38f6('0x12')]=router;