8d89a3257030d64e38a1bc00fbb8d56ce9df0ec3
[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 _0xbb34=['index','/:id','create','update','delete','exports','multer','util','path','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','get','isAuthenticated'];(function(_0x12e0b7,_0x12feb8){var _0x262d89=function(_0x11c60f){while(--_0x11c60f){_0x12e0b7['push'](_0x12e0b7['shift']());}};_0x262d89(++_0x12feb8);}(_0xbb34,0x102));var _0x4bb3=function(_0xf91841,_0x182ae3){_0xf91841=_0xf91841-0x0;var _0x4b9c44=_0xbb34[_0xf91841];return _0x4b9c44;};'use strict';var multer=require(_0x4bb3('0x0'));var util=require(_0x4bb3('0x1'));var path=require(_0x4bb3('0x2'));var timeout=require('connect-timeout');var express=require('express');var router=express['Router']();var auth=require('../../components/auth/service');var interaction=require(_0x4bb3('0x3'));var config=require(_0x4bb3('0x4'));var controller=require(_0x4bb3('0x5'));router[_0x4bb3('0x6')]('/',auth[_0x4bb3('0x7')](),controller[_0x4bb3('0x8')]);router[_0x4bb3('0x6')](_0x4bb3('0x9'),auth[_0x4bb3('0x7')](),controller['show']);router['post']('/',auth[_0x4bb3('0x7')](),controller[_0x4bb3('0xa')]);router['put'](_0x4bb3('0x9'),auth[_0x4bb3('0x7')](),controller[_0x4bb3('0xb')]);router[_0x4bb3('0xc')](_0x4bb3('0x9'),auth[_0x4bb3('0x7')](),controller['destroy']);module[_0x4bb3('0xd')]=router;