Built motion from commit (unavailable).|2.5.15
[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 _0xafb9=['get','show','post','put','/:id','update','delete','destroy','exports','multer','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated'];(function(_0x37a34d,_0x3df6d9){var _0x1cadcf=function(_0x2bacfe){while(--_0x2bacfe){_0x37a34d['push'](_0x37a34d['shift']());}};_0x1cadcf(++_0x3df6d9);}(_0xafb9,0x68));var _0x9afb=function(_0x4267e9,_0x42081d){_0x4267e9=_0x4267e9-0x0;var _0x338bee=_0xafb9[_0x4267e9];return _0x338bee;};'use strict';var multer=require(_0x9afb('0x0'));var util=require(_0x9afb('0x1'));var path=require(_0x9afb('0x2'));var timeout=require(_0x9afb('0x3'));var express=require(_0x9afb('0x4'));var router=express[_0x9afb('0x5')]();var auth=require(_0x9afb('0x6'));var interaction=require(_0x9afb('0x7'));var config=require(_0x9afb('0x8'));var controller=require('./intSalesforceField.controller');router['get']('/',auth[_0x9afb('0x9')](),controller['index']);router[_0x9afb('0xa')]('/:id',auth['isAuthenticated'](),controller[_0x9afb('0xb')]);router[_0x9afb('0xc')]('/',auth[_0x9afb('0x9')](),controller['create']);router[_0x9afb('0xd')](_0x9afb('0xe'),auth[_0x9afb('0x9')](),controller[_0x9afb('0xf')]);router[_0x9afb('0x10')]('/:id',auth['isAuthenticated'](),controller[_0x9afb('0x11')]);module[_0x9afb('0x12')]=router;