Built motion from commit (unavailable).|2.5.15
[motion2.git] / server / api / intFreshsalesField / 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 _0x6abd=['update','exports','multer','util','Router','../../config/environment','./intFreshsalesField.controller','get','isAuthenticated','/:id','show','put'];(function(_0x5f3450,_0x21d23a){var _0x58db0d=function(_0x16efc9){while(--_0x16efc9){_0x5f3450['push'](_0x5f3450['shift']());}};_0x58db0d(++_0x21d23a);}(_0x6abd,0x182));var _0xd6ab=function(_0x347e6f,_0x3135ef){_0x347e6f=_0x347e6f-0x0;var _0x71b5af=_0x6abd[_0x347e6f];return _0x71b5af;};'use strict';var multer=require(_0xd6ab('0x0'));var util=require(_0xd6ab('0x1'));var path=require('path');var timeout=require('connect-timeout');var express=require('express');var router=express[_0xd6ab('0x2')]();var auth=require('../../components/auth/service');var interaction=require('../../components/interaction/service');var config=require(_0xd6ab('0x3'));var controller=require(_0xd6ab('0x4'));router[_0xd6ab('0x5')]('/',auth[_0xd6ab('0x6')](),controller['index']);router['get'](_0xd6ab('0x7'),auth['isAuthenticated'](),controller[_0xd6ab('0x8')]);router['post']('/',auth[_0xd6ab('0x6')](),controller['create']);router[_0xd6ab('0x9')](_0xd6ab('0x7'),auth[_0xd6ab('0x6')](),controller[_0xd6ab('0xa')]);router['delete'](_0xd6ab('0x7'),auth[_0xd6ab('0x6')](),controller['destroy']);module[_0xd6ab('0xb')]=router;