Built motion from commit 0bd120ac.|2.6.25
[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 _0x34b7=['data2','Request','GetDynamics365Account','name','username','password','clientId','clientSecret','serverUrl','description','modernAuthentication','Dynamics365Configuration','ticketType','Dynamics365Field','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','Fields','idField','nameField','customField','CloudProvider'];(function(_0x4489f2,_0x1f9128){var _0x5cc527=function(_0x44201f){while(--_0x44201f){_0x4489f2['push'](_0x4489f2['shift']());}};_0x5cc527(++_0x1f9128);}(_0x34b7,0x196));var _0x734b=function(_0xd598e9,_0x20cb54){_0xd598e9=_0xd598e9-0x0;var _0x12c224=_0x34b7[_0xd598e9];return _0x12c224;};'use strict';var client=require('../../client');exports['getDynamics365Accounts']=function(){return function(_0x43a5f1){return client[_0x734b('0x0')](_0x734b('0x1'),{'options':{'raw':![],'attributes':['id',_0x734b('0x2'),_0x734b('0x3'),_0x734b('0x4'),'remoteUri','tenantId',_0x734b('0x5'),_0x734b('0x6'),_0x734b('0x7'),_0x734b('0x8'),_0x734b('0x9')],'include':[{'model':_0x734b('0xa'),'as':'Configurations','attributes':['id',_0x734b('0x2'),_0x734b('0xb'),'moduleCreate','additionalSearchContact','openNewTab'],'include':[{'model':_0x734b('0xc'),'as':'Subjects','attributes':['id',_0x734b('0xd'),_0x734b('0xe'),_0x734b('0xf')],'include':[{'model':_0x734b('0x10'),'as':_0x734b('0x10'),'attributes':['id',_0x734b('0x2')]}]},{'model':_0x734b('0xc'),'as':_0x734b('0x11'),'attributes':['id',_0x734b('0xd'),_0x734b('0xe'),_0x734b('0x12'),_0x734b('0x13'),_0x734b('0x14'),_0x734b('0xf')],'include':[{'model':'Variable','as':_0x734b('0x10'),'attributes':['id',_0x734b('0x2')]}]},{'model':_0x734b('0xc'),'as':_0x734b('0x15'),'attributes':['id',_0x734b('0xd'),_0x734b('0xe'),_0x734b('0x16'),_0x734b('0x17'),_0x734b('0x18'),_0x734b('0xf')],'include':[{'model':_0x734b('0x10'),'as':'Variable','attributes':['id',_0x734b('0x2')]}]}]},{'model':_0x734b('0x19'),'as':_0x734b('0x19'),'attributes':['id',_0x734b('0x1a'),'data5','data7']}]},'log':_0x734b('0x1')});};};