Built motion from commit (unavailable).|2.5.8
[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 _0xb0b9=['password','remoteUri','tenantId','clientId','clientSecret','serverUrl','description','Dynamics365Configuration','Configurations','Subjects','type','content','variableName','Variable','Dynamics365Field','Descriptions','keyContent','idField','nameField','../../client','Request','GetDynamics365Account','name','username'];(function(_0x18f896,_0x19526b){var _0x2228a7=function(_0x487c65){while(--_0x487c65){_0x18f896['push'](_0x18f896['shift']());}};_0x2228a7(++_0x19526b);}(_0xb0b9,0x1f3));var _0x9b0b=function(_0x3c0698,_0x27ff1e){_0x3c0698=_0x3c0698-0x0;var _0x5a4a7c=_0xb0b9[_0x3c0698];return _0x5a4a7c;};'use strict';var client=require(_0x9b0b('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x55227a){return client[_0x9b0b('0x1')](_0x9b0b('0x2'),{'options':{'raw':![],'attributes':['id',_0x9b0b('0x3'),_0x9b0b('0x4'),_0x9b0b('0x5'),_0x9b0b('0x6'),_0x9b0b('0x7'),_0x9b0b('0x8'),_0x9b0b('0x9'),_0x9b0b('0xa'),_0x9b0b('0xb')],'include':[{'model':_0x9b0b('0xc'),'as':_0x9b0b('0xd'),'attributes':['id',_0x9b0b('0x3'),'ticketType'],'include':[{'model':'Dynamics365Field','as':_0x9b0b('0xe'),'attributes':['id',_0x9b0b('0xf'),_0x9b0b('0x10'),_0x9b0b('0x11')],'include':[{'model':_0x9b0b('0x12'),'as':_0x9b0b('0x12'),'attributes':['id','name']}]},{'model':_0x9b0b('0x13'),'as':_0x9b0b('0x14'),'attributes':['id',_0x9b0b('0xf'),_0x9b0b('0x10'),'key','keyType',_0x9b0b('0x15'),'variableName'],'include':[{'model':_0x9b0b('0x12'),'as':'Variable','attributes':['id',_0x9b0b('0x3')]}]},{'model':_0x9b0b('0x13'),'as':'Fields','attributes':['id','type',_0x9b0b('0x10'),_0x9b0b('0x16'),_0x9b0b('0x17'),'customField',_0x9b0b('0x11')],'include':[{'model':_0x9b0b('0x12'),'as':_0x9b0b('0x12'),'attributes':['id',_0x9b0b('0x3')]}]}]}]},'log':_0x9b0b('0x2')});};};