6d75957b33e5563464e38555c9b0b72c74e1bedc
[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 _0x3f49=['util','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','get','isAuthenticated','index','/:id','show','post','create','put','update','destroy','exports','multer'];(function(_0x119781,_0x2464c4){var _0x12f956=function(_0xcedb3d){while(--_0xcedb3d){_0x119781['push'](_0x119781['shift']());}};_0x12f956(++_0x2464c4);}(_0x3f49,0x11f));var _0x93f4=function(_0x5c91c4,_0x36beff){_0x5c91c4=_0x5c91c4-0x0;var _0x2f31e2=_0x3f49[_0x5c91c4];return _0x2f31e2;};'use strict';var multer=require(_0x93f4('0x0'));var util=require(_0x93f4('0x1'));var path=require('path');var timeout=require(_0x93f4('0x2'));var express=require(_0x93f4('0x3'));var router=express[_0x93f4('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x93f4('0x5'));var interaction=require(_0x93f4('0x6'));var config=require('../../config/environment');var controller=require('./intFreshsalesField.controller');router[_0x93f4('0x7')]('/',auth[_0x93f4('0x8')](),controller[_0x93f4('0x9')]);router['get'](_0x93f4('0xa'),auth['isAuthenticated'](),controller[_0x93f4('0xb')]);router[_0x93f4('0xc')]('/',auth[_0x93f4('0x8')](),controller[_0x93f4('0xd')]);router[_0x93f4('0xe')](_0x93f4('0xa'),auth[_0x93f4('0x8')](),controller[_0x93f4('0xf')]);router['delete']('/:id',auth[_0x93f4('0x8')](),controller[_0x93f4('0x10')]);module[_0x93f4('0x11')]=router;