Built motion from commit fe909640.|2.6.8
[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 _0xe87b=['show','post','create','put','update','delete','exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../config/environment','get','isAuthenticated','index','/:id'];(function(_0x2f2b32,_0x44fc28){var _0x2084de=function(_0x4ba97b){while(--_0x4ba97b){_0x2f2b32['push'](_0x2f2b32['shift']());}};_0x2084de(++_0x44fc28);}(_0xe87b,0x73));var _0xbe87=function(_0x27e7d0,_0x70c084){_0x27e7d0=_0x27e7d0-0x0;var _0x2e396a=_0xe87b[_0x27e7d0];return _0x2e396a;};'use strict';var multer=require('multer');var util=require(_0xbe87('0x0'));var path=require(_0xbe87('0x1'));var timeout=require(_0xbe87('0x2'));var express=require(_0xbe87('0x3'));var router=express[_0xbe87('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0xbe87('0x5'));var interaction=require('../../components/interaction/service');var config=require(_0xbe87('0x6'));var controller=require('./intSugarcrmField.controller');router[_0xbe87('0x7')]('/',auth[_0xbe87('0x8')](),controller[_0xbe87('0x9')]);router['get'](_0xbe87('0xa'),auth['isAuthenticated'](),controller[_0xbe87('0xb')]);router[_0xbe87('0xc')]('/',auth['isAuthenticated'](),controller[_0xbe87('0xd')]);router[_0xbe87('0xe')](_0xbe87('0xa'),auth[_0xbe87('0x8')](),controller[_0xbe87('0xf')]);router[_0xbe87('0x10')](_0xbe87('0xa'),auth['isAuthenticated'](),controller['destroy']);module[_0xbe87('0x11')]=router;