b6d53e41725006fb5e608df2b57520024b16f65e
[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 _0xa4f6=['util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','index','/:id','post','create','put','update','destroy','exports','multer'];(function(_0xe38f5c,_0x5dc27d){var _0x18d71b=function(_0x12ac0f){while(--_0x12ac0f){_0xe38f5c['push'](_0xe38f5c['shift']());}};_0x18d71b(++_0x5dc27d);}(_0xa4f6,0x17b));var _0x6a4f=function(_0x659e68,_0x576f76){_0x659e68=_0x659e68-0x0;var _0x251ac9=_0xa4f6[_0x659e68];return _0x251ac9;};'use strict';var multer=require(_0x6a4f('0x0'));var util=require(_0x6a4f('0x1'));var path=require('path');var timeout=require(_0x6a4f('0x2'));var express=require(_0x6a4f('0x3'));var router=express[_0x6a4f('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x6a4f('0x5'));var interaction=require(_0x6a4f('0x6'));var config=require(_0x6a4f('0x7'));var controller=require(_0x6a4f('0x8'));router[_0x6a4f('0x9')]('/',auth[_0x6a4f('0xa')](),controller[_0x6a4f('0xb')]);router['get'](_0x6a4f('0xc'),auth['isAuthenticated'](),controller['show']);router[_0x6a4f('0xd')]('/',auth[_0x6a4f('0xa')](),controller[_0x6a4f('0xe')]);router[_0x6a4f('0xf')](_0x6a4f('0xc'),auth[_0x6a4f('0xa')](),controller[_0x6a4f('0x10')]);router['delete'](_0x6a4f('0xc'),auth[_0x6a4f('0xa')](),controller[_0x6a4f('0x11')]);module[_0x6a4f('0x12')]=router;