Built motion from commit (unavailable).|2.0.79
[motion2.git] / server / api / intSalesforceAccount / 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 _0x0b66=['util','path','express','Router','../../components/auth/service','../../components/interaction/service','../../config/environment','isAuthenticated','index','get','/:id','show','/:id/configurations','/:id/fields','getFields','post','create','put','update','destroy','exports'];(function(_0x254b22,_0x27159f){var _0x1279db=function(_0x3ca06f){while(--_0x3ca06f){_0x254b22['push'](_0x254b22['shift']());}};_0x1279db(++_0x27159f);}(_0x0b66,0x1b9));var _0x60b6=function(_0x1238be,_0x1ab250){_0x1238be=_0x1238be-0x0;var _0x3a0ce0=_0x0b66[_0x1238be];return _0x3a0ce0;};'use strict';var multer=require('multer');var util=require(_0x60b6('0x0'));var path=require(_0x60b6('0x1'));var timeout=require('connect-timeout');var express=require(_0x60b6('0x2'));var router=express[_0x60b6('0x3')]();var auth=require(_0x60b6('0x4'));var interaction=require(_0x60b6('0x5'));var config=require(_0x60b6('0x6'));var controller=require('./intSalesforceAccount.controller');router['get']('/',auth[_0x60b6('0x7')](),controller[_0x60b6('0x8')]);router[_0x60b6('0x9')](_0x60b6('0xa'),auth['isAuthenticated'](),controller[_0x60b6('0xb')]);router[_0x60b6('0x9')](_0x60b6('0xc'),auth[_0x60b6('0x7')](),controller['getConfigurations']);router[_0x60b6('0x9')](_0x60b6('0xd'),auth['isAuthenticated'](),controller[_0x60b6('0xe')]);router[_0x60b6('0xf')]('/',auth[_0x60b6('0x7')](),controller[_0x60b6('0x10')]);router['post']('/:id/configurations',auth['isAuthenticated'](),controller['addConfiguration']);router[_0x60b6('0x11')](_0x60b6('0xa'),auth['isAuthenticated'](),controller[_0x60b6('0x12')]);router['delete'](_0x60b6('0xa'),auth['isAuthenticated'](),controller[_0x60b6('0x13')]);module[_0x60b6('0x14')]=router;