Built motion from commit (unavailable).|2.5.24
[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 _0x6b15=['isAuthenticated','create','put','delete','destroy','exports','multer','util','path','express','Router','../../components/auth/service','../../components/interaction/service','index','get','/:id','show','post'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x6b15,0x1c8));var _0x56b1=function(_0x4aaffd,_0x114a28){_0x4aaffd=_0x4aaffd-0x0;var _0xd0b68e=_0x6b15[_0x4aaffd];return _0xd0b68e;};'use strict';var multer=require(_0x56b1('0x0'));var util=require(_0x56b1('0x1'));var path=require(_0x56b1('0x2'));var timeout=require('connect-timeout');var express=require(_0x56b1('0x3'));var router=express[_0x56b1('0x4')]();var auth=require(_0x56b1('0x5'));var interaction=require(_0x56b1('0x6'));var config=require('../../config/environment');var controller=require('./intSalesforceField.controller');router['get']('/',auth['isAuthenticated'](),controller[_0x56b1('0x7')]);router[_0x56b1('0x8')](_0x56b1('0x9'),auth['isAuthenticated'](),controller[_0x56b1('0xa')]);router[_0x56b1('0xb')]('/',auth[_0x56b1('0xc')](),controller[_0x56b1('0xd')]);router[_0x56b1('0xe')]('/:id',auth[_0x56b1('0xc')](),controller['update']);router[_0x56b1('0xf')](_0x56b1('0x9'),auth[_0x56b1('0xc')](),controller[_0x56b1('0x10')]);module[_0x56b1('0x11')]=router;