Built motion from commit (unavailable).|2.4.20
[motion2.git] / server / api / intFreshsalesAccount / 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 _0xfb5b=['exports','util','path','connect-timeout','express','Router','../../components/auth/service','../../components/interaction/service','./intFreshsalesAccount.controller','isAuthenticated','index','/:id','get','/:id/configurations','getConfigurations','getFields','post','create','addConfiguration','put','update','destroy'];(function(_0x2badac,_0x4b93fa){var _0x28276c=function(_0x19d5db){while(--_0x19d5db){_0x2badac['push'](_0x2badac['shift']());}};_0x28276c(++_0x4b93fa);}(_0xfb5b,0x18d));var _0xbfb5=function(_0xd723be,_0x3c5571){_0xd723be=_0xd723be-0x0;var _0x3d1e14=_0xfb5b[_0xd723be];return _0x3d1e14;};'use strict';var multer=require('multer');var util=require(_0xbfb5('0x0'));var path=require(_0xbfb5('0x1'));var timeout=require(_0xbfb5('0x2'));var express=require(_0xbfb5('0x3'));var router=express[_0xbfb5('0x4')]();var auth=require(_0xbfb5('0x5'));var interaction=require(_0xbfb5('0x6'));var config=require('../../config/environment');var controller=require(_0xbfb5('0x7'));router['get']('/',auth[_0xbfb5('0x8')](),controller[_0xbfb5('0x9')]);router['get'](_0xbfb5('0xa'),auth[_0xbfb5('0x8')](),controller['show']);router[_0xbfb5('0xb')](_0xbfb5('0xc'),auth['isAuthenticated'](),controller[_0xbfb5('0xd')]);router[_0xbfb5('0xb')]('/:id/fields',auth[_0xbfb5('0x8')](),controller[_0xbfb5('0xe')]);router[_0xbfb5('0xf')]('/',auth[_0xbfb5('0x8')](),controller[_0xbfb5('0x10')]);router[_0xbfb5('0xf')](_0xbfb5('0xc'),auth[_0xbfb5('0x8')](),controller[_0xbfb5('0x11')]);router[_0xbfb5('0x12')](_0xbfb5('0xa'),auth['isAuthenticated'](),controller[_0xbfb5('0x13')]);router['delete'](_0xbfb5('0xa'),auth['isAuthenticated'](),controller[_0xbfb5('0x14')]);module[_0xbfb5('0x15')]=router;