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