2799ae1f2448652e543012f7af69a33a592a8285
[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 _0x7bcd=['fs-extra','../../components/auth/service','../../components/interaction/service','./intSugarcrmField.controller','isAuthenticated','index','post','create','/:id','update','destroy','exports','multer','util','path','connect-timeout','express','Router'];(function(_0x549e36,_0x484a61){var _0x1a0669=function(_0x962991){while(--_0x962991){_0x549e36['push'](_0x549e36['shift']());}};_0x1a0669(++_0x484a61);}(_0x7bcd,0x162));var _0xd7bc=function(_0x421cf8,_0x23152c){_0x421cf8=_0x421cf8-0x0;var _0x145c48=_0x7bcd[_0x421cf8];return _0x145c48;};'use strict';var multer=require(_0xd7bc('0x0'));var util=require(_0xd7bc('0x1'));var path=require(_0xd7bc('0x2'));var timeout=require(_0xd7bc('0x3'));var express=require(_0xd7bc('0x4'));var router=express[_0xd7bc('0x5')]();var fs_extra=require(_0xd7bc('0x6'));var auth=require(_0xd7bc('0x7'));var interaction=require(_0xd7bc('0x8'));var config=require('../../config/environment');var controller=require(_0xd7bc('0x9'));router['get']('/',auth[_0xd7bc('0xa')](),controller[_0xd7bc('0xb')]);router['get']('/:id',auth['isAuthenticated'](),controller['show']);router[_0xd7bc('0xc')]('/',auth[_0xd7bc('0xa')](),controller[_0xd7bc('0xd')]);router['put'](_0xd7bc('0xe'),auth[_0xd7bc('0xa')](),controller[_0xd7bc('0xf')]);router['delete']('/:id',auth[_0xd7bc('0xa')](),controller[_0xd7bc('0x10')]);module[_0xd7bc('0x11')]=router;