f289f7a77cb93c99d31400add1b44d9dfd9e1c3b
[motion2.git] / server / api / intSalesforceField / 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 _0xacf4=['/:id','show','post','put','update','delete','destroy','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','get','isAuthenticated'];(function(_0x195c60,_0x15248c){var _0x5c6c7d=function(_0x27d183){while(--_0x27d183){_0x195c60['push'](_0x195c60['shift']());}};_0x5c6c7d(++_0x15248c);}(_0xacf4,0xe7));var _0x4acf=function(_0x20c6af,_0x15ac97){_0x20c6af=_0x20c6af-0x0;var _0x1e8088=_0xacf4[_0x20c6af];return _0x1e8088;};'use strict';var multer=require('multer');var util=require('util');var path=require(_0x4acf('0x0'));var timeout=require(_0x4acf('0x1'));var express=require(_0x4acf('0x2'));var router=express[_0x4acf('0x3')]();var auth=require(_0x4acf('0x4'));var interaction=require(_0x4acf('0x5'));var config=require(_0x4acf('0x6'));var controller=require('./intSalesforceField.controller');router[_0x4acf('0x7')]('/',auth[_0x4acf('0x8')](),controller['index']);router[_0x4acf('0x7')](_0x4acf('0x9'),auth[_0x4acf('0x8')](),controller[_0x4acf('0xa')]);router[_0x4acf('0xb')]('/',auth['isAuthenticated'](),controller['create']);router[_0x4acf('0xc')]('/:id',auth[_0x4acf('0x8')](),controller[_0x4acf('0xd')]);router[_0x4acf('0xe')]('/:id',auth[_0x4acf('0x8')](),controller[_0x4acf('0xf')]);module['exports']=router;