1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x7a16=['../../components/interaction/service','../../config/environment','./intDynamics365Account.controller','isAuthenticated','index','get','/:id','show','getConfigurations','/:id/fields','getFields','post','/:id/configurations','addConfiguration','put','update','delete','destroy','exports','util','path','connect-timeout','express','Router','../../components/auth/service'];(function(_0x5d1ca6,_0x1283d8){var _0x5944ef=function(_0x8192f8){while(--_0x8192f8){_0x5d1ca6['push'](_0x5d1ca6['shift']());}};_0x5944ef(++_0x1283d8);}(_0x7a16,0x10d));var _0x67a1=function(_0x502c7d,_0x2f1285){_0x502c7d=_0x502c7d-0x0;var _0x30b7ed=_0x7a16[_0x502c7d];return _0x30b7ed;};'use strict';var multer=require('multer');var util=require(_0x67a1('0x0'));var path=require(_0x67a1('0x1'));var timeout=require(_0x67a1('0x2'));var express=require(_0x67a1('0x3'));var router=express[_0x67a1('0x4')]();var fs_extra=require('fs-extra');var auth=require(_0x67a1('0x5'));var interaction=require(_0x67a1('0x6'));var config=require(_0x67a1('0x7'));var controller=require(_0x67a1('0x8'));router['get']('/',auth[_0x67a1('0x9')](),controller[_0x67a1('0xa')]);router[_0x67a1('0xb')](_0x67a1('0xc'),auth[_0x67a1('0x9')](),controller[_0x67a1('0xd')]);router['get']('/:id/configurations',auth[_0x67a1('0x9')](),controller[_0x67a1('0xe')]);router['get'](_0x67a1('0xf'),auth[_0x67a1('0x9')](),controller[_0x67a1('0x10')]);router['post']('/',auth['isAuthenticated'](),controller['create']);router[_0x67a1('0x11')](_0x67a1('0x12'),auth[_0x67a1('0x9')](),controller[_0x67a1('0x13')]);router[_0x67a1('0x14')](_0x67a1('0xc'),auth['isAuthenticated'](),controller[_0x67a1('0x15')]);router[_0x67a1('0x16')](_0x67a1('0xc'),auth[_0x67a1('0x9')](),controller[_0x67a1('0x17')]);module[_0x67a1('0x18')]=router;