Built motion from commit 13c3002c.|2.6.9
[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 _0x92f0=['Router','../../components/interaction/service','../../config/environment','./intFreshsalesField.controller','get','isAuthenticated','index','/:id','show','put','update','delete','destroy','exports','util','path','express'];(function(_0x561be2,_0x42e8e4){var _0x41a37f=function(_0x67b782){while(--_0x67b782){_0x561be2['push'](_0x561be2['shift']());}};_0x41a37f(++_0x42e8e4);}(_0x92f0,0x10d));var _0x092f=function(_0x5a636f,_0x3fec2b){_0x5a636f=_0x5a636f-0x0;var _0x6a8cfb=_0x92f0[_0x5a636f];return _0x6a8cfb;};'use strict';var multer=require('multer');var util=require(_0x092f('0x0'));var path=require(_0x092f('0x1'));var timeout=require('connect-timeout');var express=require(_0x092f('0x2'));var router=express[_0x092f('0x3')]();var fs_extra=require('fs-extra');var auth=require('../../components/auth/service');var interaction=require(_0x092f('0x4'));var config=require(_0x092f('0x5'));var controller=require(_0x092f('0x6'));router[_0x092f('0x7')]('/',auth[_0x092f('0x8')](),controller[_0x092f('0x9')]);router['get'](_0x092f('0xa'),auth['isAuthenticated'](),controller[_0x092f('0xb')]);router['post']('/',auth[_0x092f('0x8')](),controller['create']);router[_0x092f('0xc')]('/:id',auth[_0x092f('0x8')](),controller[_0x092f('0xd')]);router[_0x092f('0xe')]('/:id',auth[_0x092f('0x8')](),controller[_0x092f('0xf')]);module[_0x092f('0x10')]=router;