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