Built motion from commit d1eab355.|2.6.28
[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 _0x9861=['description','modernAuthentication','Dynamics365Configuration','Configurations','ticketType','moduleCreate','openNewTab','Dynamics365Field','Subjects','type','variableName','Variable','content','key','keyType','keyContent','idField','customField','CloudProvider','data2','data5','data7','../../client','Request','GetDynamics365Account','name','username','password','remoteUri','clientId','clientSecret','serverUrl'];(function(_0xd689de,_0x33da1f){var _0x4509a5=function(_0x2f5809){while(--_0x2f5809){_0xd689de['push'](_0xd689de['shift']());}};_0x4509a5(++_0x33da1f);}(_0x9861,0x176));var _0x1986=function(_0x46728d,_0x5133aa){_0x46728d=_0x46728d-0x0;var _0x1edbba=_0x9861[_0x46728d];return _0x1edbba;};'use strict';var client=require(_0x1986('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x5071b2){return client[_0x1986('0x1')](_0x1986('0x2'),{'options':{'raw':![],'attributes':['id',_0x1986('0x3'),_0x1986('0x4'),_0x1986('0x5'),_0x1986('0x6'),'tenantId',_0x1986('0x7'),_0x1986('0x8'),_0x1986('0x9'),_0x1986('0xa'),_0x1986('0xb')],'include':[{'model':_0x1986('0xc'),'as':_0x1986('0xd'),'attributes':['id',_0x1986('0x3'),_0x1986('0xe'),_0x1986('0xf'),'additionalSearchContact',_0x1986('0x10')],'include':[{'model':_0x1986('0x11'),'as':_0x1986('0x12'),'attributes':['id',_0x1986('0x13'),'content',_0x1986('0x14')],'include':[{'model':_0x1986('0x15'),'as':'Variable','attributes':['id',_0x1986('0x3')]}]},{'model':'Dynamics365Field','as':'Descriptions','attributes':['id',_0x1986('0x13'),_0x1986('0x16'),_0x1986('0x17'),_0x1986('0x18'),_0x1986('0x19'),_0x1986('0x14')],'include':[{'model':_0x1986('0x15'),'as':_0x1986('0x15'),'attributes':['id',_0x1986('0x3')]}]},{'model':_0x1986('0x11'),'as':'Fields','attributes':['id','type',_0x1986('0x16'),_0x1986('0x1a'),'nameField',_0x1986('0x1b'),_0x1986('0x14')],'include':[{'model':_0x1986('0x15'),'as':_0x1986('0x15'),'attributes':['id',_0x1986('0x3')]}]}]},{'model':_0x1986('0x1c'),'as':_0x1986('0x1c'),'attributes':['id',_0x1986('0x1d'),_0x1986('0x1e'),_0x1986('0x1f')]}]},'log':_0x1986('0x2')});};};