Built motion from commit (unavailable).|2.3.4
[motion2.git] / server / services / ami / rpc / integrations / dynamics365.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 _0x18e2=['tenantId','clientId','serverUrl','description','ticketType','Dynamics365Field','content','Variable','name','Descriptions','type','key','keyContent','variableName','nameField','customField','GetDynamics365Account','../../client','getDynamics365Accounts','Request','username','password'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0x18e2,0x15b));var _0x218e=function(_0x36bd12,_0x49938e){_0x36bd12=_0x36bd12-0x0;var _0xbeeace=_0x18e2[_0x36bd12];return _0xbeeace;};'use strict';var client=require(_0x218e('0x0'));exports[_0x218e('0x1')]=function(){return function(_0x3b0366){return client[_0x218e('0x2')]('GetDynamics365Account',{'options':{'raw':![],'attributes':['id','name',_0x218e('0x3'),_0x218e('0x4'),'remoteUri',_0x218e('0x5'),_0x218e('0x6'),'clientSecret',_0x218e('0x7'),_0x218e('0x8')],'include':[{'model':'Dynamics365Configuration','as':'Configurations','attributes':['id','name',_0x218e('0x9')],'include':[{'model':_0x218e('0xa'),'as':'Subjects','attributes':['id','type',_0x218e('0xb'),'variableName'],'include':[{'model':'Variable','as':_0x218e('0xc'),'attributes':['id',_0x218e('0xd')]}]},{'model':'Dynamics365Field','as':_0x218e('0xe'),'attributes':['id',_0x218e('0xf'),_0x218e('0xb'),_0x218e('0x10'),'keyType',_0x218e('0x11'),_0x218e('0x12')],'include':[{'model':_0x218e('0xc'),'as':_0x218e('0xc'),'attributes':['id',_0x218e('0xd')]}]},{'model':_0x218e('0xa'),'as':'Fields','attributes':['id',_0x218e('0xf'),_0x218e('0xb'),'idField',_0x218e('0x13'),_0x218e('0x14'),_0x218e('0x12')],'include':[{'model':_0x218e('0xc'),'as':_0x218e('0xc'),'attributes':['id','name']}]}]}]},'log':_0x218e('0x15')});};};