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