Built motion from commit 47436d59.|2.6.7
[motion2.git] / server / api / intServicenowAccount / 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 _0xc5ab=['./intServicenowAccount.controller','get','index','/:id','show','/:id/configurations','isAuthenticated','getConfigurations','getFields','post','addConfiguration','put','update','delete','destroy','util','path','express','Router','fs-extra','../../components/interaction/service','../../config/environment'];(function(_0x4b6669,_0x38b8ee){var _0x1dd91f=function(_0x35c45a){while(--_0x35c45a){_0x4b6669['push'](_0x4b6669['shift']());}};_0x1dd91f(++_0x38b8ee);}(_0xc5ab,0x19b));var _0xbc5a=function(_0xdc9149,_0x2a85ab){_0xdc9149=_0xdc9149-0x0;var _0x4c18be=_0xc5ab[_0xdc9149];return _0x4c18be;};'use strict';var multer=require('multer');var util=require(_0xbc5a('0x0'));var path=require(_0xbc5a('0x1'));var timeout=require('connect-timeout');var express=require(_0xbc5a('0x2'));var router=express[_0xbc5a('0x3')]();var fs_extra=require(_0xbc5a('0x4'));var auth=require('../../components/auth/service');var interaction=require(_0xbc5a('0x5'));var config=require(_0xbc5a('0x6'));var controller=require(_0xbc5a('0x7'));router[_0xbc5a('0x8')]('/',auth['isAuthenticated'](),controller[_0xbc5a('0x9')]);router[_0xbc5a('0x8')](_0xbc5a('0xa'),auth['isAuthenticated'](),controller[_0xbc5a('0xb')]);router[_0xbc5a('0x8')](_0xbc5a('0xc'),auth[_0xbc5a('0xd')](),controller[_0xbc5a('0xe')]);router[_0xbc5a('0x8')]('/:id/fields',auth['isAuthenticated'](),controller[_0xbc5a('0xf')]);router[_0xbc5a('0x10')]('/',auth['isAuthenticated'](),controller['create']);router[_0xbc5a('0x10')]('/:id/configurations',auth[_0xbc5a('0xd')](),controller[_0xbc5a('0x11')]);router[_0xbc5a('0x12')](_0xbc5a('0xa'),auth[_0xbc5a('0xd')](),controller[_0xbc5a('0x13')]);router[_0xbc5a('0x14')](_0xbc5a('0xa'),auth[_0xbc5a('0xd')](),controller[_0xbc5a('0x15')]);module['exports']=router;