8664bfa81e9d0895d6682aa7e7fcd277384aea5b
[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 _0x1be2=['Router','fs-extra','../../components/auth/service','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','index','/:id','show','post','isAuthenticated','create','put','update','destroy','exports','util','path','connect-timeout'];(function(_0x1c90a7,_0x115e4d){var _0x408b33=function(_0x4b2b46){while(--_0x4b2b46){_0x1c90a7['push'](_0x1c90a7['shift']());}};_0x408b33(++_0x115e4d);}(_0x1be2,0x6f));var _0x21be=function(_0x2b4fee,_0x189e42){_0x2b4fee=_0x2b4fee-0x0;var _0xcef8df=_0x1be2[_0x2b4fee];return _0xcef8df;};'use strict';var multer=require('multer');var util=require(_0x21be('0x0'));var path=require(_0x21be('0x1'));var timeout=require(_0x21be('0x2'));var express=require('express');var router=express[_0x21be('0x3')]();var fs_extra=require(_0x21be('0x4'));var auth=require(_0x21be('0x5'));var interaction=require(_0x21be('0x6'));var config=require(_0x21be('0x7'));var controller=require(_0x21be('0x8'));router['get']('/',auth['isAuthenticated'](),controller[_0x21be('0x9')]);router['get'](_0x21be('0xa'),auth['isAuthenticated'](),controller[_0x21be('0xb')]);router[_0x21be('0xc')]('/',auth[_0x21be('0xd')](),controller[_0x21be('0xe')]);router[_0x21be('0xf')](_0x21be('0xa'),auth['isAuthenticated'](),controller[_0x21be('0x10')]);router['delete'](_0x21be('0xa'),auth['isAuthenticated'](),controller[_0x21be('0x11')]);module[_0x21be('0x12')]=router;