Built motion from commit (unavailable).|2.5.22
[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 _0x70f3=['/:id','show','post','create','put','update','delete','destroy','exports','util','path','connect-timeout','express','../../components/interaction/service','../../config/environment','./intSugarcrmField.controller','get','isAuthenticated','index'];(function(_0x1d53bd,_0x2653b1){var _0x38a8e5=function(_0x566da5){while(--_0x566da5){_0x1d53bd['push'](_0x1d53bd['shift']());}};_0x38a8e5(++_0x2653b1);}(_0x70f3,0xc7));var _0x370f=function(_0xde4037,_0x368fcd){_0xde4037=_0xde4037-0x0;var _0x296e14=_0x70f3[_0xde4037];return _0x296e14;};'use strict';var multer=require('multer');var util=require(_0x370f('0x0'));var path=require(_0x370f('0x1'));var timeout=require(_0x370f('0x2'));var express=require(_0x370f('0x3'));var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x370f('0x4'));var config=require(_0x370f('0x5'));var controller=require(_0x370f('0x6'));router[_0x370f('0x7')]('/',auth[_0x370f('0x8')](),controller[_0x370f('0x9')]);router['get'](_0x370f('0xa'),auth[_0x370f('0x8')](),controller[_0x370f('0xb')]);router[_0x370f('0xc')]('/',auth['isAuthenticated'](),controller[_0x370f('0xd')]);router[_0x370f('0xe')](_0x370f('0xa'),auth[_0x370f('0x8')](),controller[_0x370f('0xf')]);router[_0x370f('0x10')]('/:id',auth[_0x370f('0x8')](),controller[_0x370f('0x11')]);module[_0x370f('0x12')]=router;