Built motion from commit d5e4af8c.|2.6.23
[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 _0x3ac5=['../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','create','put','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','fs-extra'];(function(_0x2d34d6,_0x397ff9){var _0x1d3d12=function(_0x558800){while(--_0x558800){_0x2d34d6['push'](_0x2d34d6['shift']());}};_0x1d3d12(++_0x397ff9);}(_0x3ac5,0xe0));var _0x53ac=function(_0x34dcde,_0x35aed){_0x34dcde=_0x34dcde-0x0;var _0x264419=_0x3ac5[_0x34dcde];return _0x264419;};'use strict';var multer=require(_0x53ac('0x0'));var util=require(_0x53ac('0x1'));var path=require(_0x53ac('0x2'));var timeout=require(_0x53ac('0x3'));var express=require(_0x53ac('0x4'));var router=express[_0x53ac('0x5')]();var fs_extra=require(_0x53ac('0x6'));var auth=require(_0x53ac('0x7'));var interaction=require(_0x53ac('0x8'));var config=require(_0x53ac('0x9'));var controller=require('./intSugarcrmField.controller');router['get']('/',auth[_0x53ac('0xa')](),controller[_0x53ac('0xb')]);router[_0x53ac('0xc')](_0x53ac('0xd'),auth['isAuthenticated'](),controller[_0x53ac('0xe')]);router['post']('/',auth[_0x53ac('0xa')](),controller[_0x53ac('0xf')]);router[_0x53ac('0x10')](_0x53ac('0xd'),auth['isAuthenticated'](),controller[_0x53ac('0x11')]);router[_0x53ac('0x12')](_0x53ac('0xd'),auth[_0x53ac('0xa')](),controller[_0x53ac('0x13')]);module[_0x53ac('0x14')]=router;