24bec8f7839401270c90865f0b1c6b1bb01cae6c
[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 _0x7462=['clientSecret','serverUrl','description','modernAuthentication','Dynamics365Configuration','Configurations','name','ticketType','additionalSearchContact','openNewTab','Subjects','type','content','Variable','Dynamics365Field','Descriptions','key','keyType','keyContent','variableName','Fields','idField','nameField','CloudProvider','data2','data5','data7','../../client','getDynamics365Accounts','GetDynamics365Account','password','remoteUri','clientId'];(function(_0x78c040,_0x43bc78){var _0x5a46de=function(_0x1c8fa1){while(--_0x1c8fa1){_0x78c040['push'](_0x78c040['shift']());}};_0x5a46de(++_0x43bc78);}(_0x7462,0x165));var _0x2746=function(_0x23ca4d,_0x5c2a32){_0x23ca4d=_0x23ca4d-0x0;var _0x435432=_0x7462[_0x23ca4d];return _0x435432;};'use strict';var client=require(_0x2746('0x0'));exports[_0x2746('0x1')]=function(){return function(_0x5666d5){return client['Request'](_0x2746('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0x2746('0x3'),_0x2746('0x4'),'tenantId',_0x2746('0x5'),_0x2746('0x6'),_0x2746('0x7'),_0x2746('0x8'),_0x2746('0x9')],'include':[{'model':_0x2746('0xa'),'as':_0x2746('0xb'),'attributes':['id',_0x2746('0xc'),_0x2746('0xd'),'moduleCreate',_0x2746('0xe'),_0x2746('0xf')],'include':[{'model':'Dynamics365Field','as':_0x2746('0x10'),'attributes':['id',_0x2746('0x11'),_0x2746('0x12'),'variableName'],'include':[{'model':_0x2746('0x13'),'as':_0x2746('0x13'),'attributes':['id',_0x2746('0xc')]}]},{'model':_0x2746('0x14'),'as':_0x2746('0x15'),'attributes':['id',_0x2746('0x11'),_0x2746('0x12'),_0x2746('0x16'),_0x2746('0x17'),_0x2746('0x18'),_0x2746('0x19')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x2746('0xc')]}]},{'model':_0x2746('0x14'),'as':_0x2746('0x1a'),'attributes':['id',_0x2746('0x11'),'content',_0x2746('0x1b'),_0x2746('0x1c'),'customField','variableName'],'include':[{'model':_0x2746('0x13'),'as':_0x2746('0x13'),'attributes':['id',_0x2746('0xc')]}]}]},{'model':_0x2746('0x1d'),'as':_0x2746('0x1d'),'attributes':['id',_0x2746('0x1e'),_0x2746('0x1f'),_0x2746('0x20')]}]},'log':_0x2746('0x2')});};};