Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / api / intSugarcrmAccount / 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 _0xed86=['Router','../../components/interaction/service','../../config/environment','./intSugarcrmAccount.controller','isAuthenticated','index','/:id','show','get','/:id/fields','post','addConfiguration','update','delete','util','path','connect-timeout','express'];(function(_0x362f29,_0x410084){var _0xbbe16c=function(_0xfd30f9){while(--_0xfd30f9){_0x362f29['push'](_0x362f29['shift']());}};_0xbbe16c(++_0x410084);}(_0xed86,0xb0));var _0x6ed8=function(_0x3899d1,_0x4aa04c){_0x3899d1=_0x3899d1-0x0;var _0xeb4a7d=_0xed86[_0x3899d1];return _0xeb4a7d;};'use strict';var multer=require('multer');var util=require(_0x6ed8('0x0'));var path=require(_0x6ed8('0x1'));var timeout=require(_0x6ed8('0x2'));var express=require(_0x6ed8('0x3'));var router=express[_0x6ed8('0x4')]();var auth=require('../../components/auth/service');var interaction=require(_0x6ed8('0x5'));var config=require(_0x6ed8('0x6'));var controller=require(_0x6ed8('0x7'));router['get']('/',auth[_0x6ed8('0x8')](),controller[_0x6ed8('0x9')]);router['get'](_0x6ed8('0xa'),auth[_0x6ed8('0x8')](),controller[_0x6ed8('0xb')]);router[_0x6ed8('0xc')]('/:id/configurations',auth[_0x6ed8('0x8')](),controller['getConfigurations']);router['get'](_0x6ed8('0xd'),auth['isAuthenticated'](),controller['getFields']);router[_0x6ed8('0xe')]('/',auth[_0x6ed8('0x8')](),controller['create']);router[_0x6ed8('0xe')]('/:id/configurations',auth[_0x6ed8('0x8')](),controller[_0x6ed8('0xf')]);router['put'](_0x6ed8('0xa'),auth[_0x6ed8('0x8')](),controller[_0x6ed8('0x10')]);router[_0x6ed8('0x11')]('/:id',auth[_0x6ed8('0x8')](),controller['destroy']);module['exports']=router;