f5f992a8b37f5ad11eeb3b28bb5726e01c67fac2
[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 _0x0506=['type','key','keyType','keyContent','Fields','idField','customField','variableName','GetDynamics365Account','../../client','getDynamics365Accounts','password','tenantId','serverUrl','description','Dynamics365Configuration','Configurations','name','ticketType','Dynamics365Field','Subjects','content','Variable','Descriptions'];(function(_0x5f3d8e,_0x14d692){var _0x3b281d=function(_0x5d9983){while(--_0x5d9983){_0x5f3d8e['push'](_0x5f3d8e['shift']());}};_0x3b281d(++_0x14d692);}(_0x0506,0x1d1));var _0x6050=function(_0x4c2a24,_0x1347d4){_0x4c2a24=_0x4c2a24-0x0;var _0x35239e=_0x0506[_0x4c2a24];return _0x35239e;};'use strict';var client=require(_0x6050('0x0'));exports[_0x6050('0x1')]=function(){return function(_0x1ba949){return client['Request']('GetDynamics365Account',{'options':{'raw':![],'attributes':['id','name','username',_0x6050('0x2'),'remoteUri',_0x6050('0x3'),'clientId','clientSecret',_0x6050('0x4'),_0x6050('0x5')],'include':[{'model':_0x6050('0x6'),'as':_0x6050('0x7'),'attributes':['id',_0x6050('0x8'),_0x6050('0x9')],'include':[{'model':_0x6050('0xa'),'as':_0x6050('0xb'),'attributes':['id','type',_0x6050('0xc'),'variableName'],'include':[{'model':_0x6050('0xd'),'as':_0x6050('0xd'),'attributes':['id',_0x6050('0x8')]}]},{'model':_0x6050('0xa'),'as':_0x6050('0xe'),'attributes':['id',_0x6050('0xf'),_0x6050('0xc'),_0x6050('0x10'),_0x6050('0x11'),_0x6050('0x12'),'variableName'],'include':[{'model':_0x6050('0xd'),'as':'Variable','attributes':['id',_0x6050('0x8')]}]},{'model':_0x6050('0xa'),'as':_0x6050('0x13'),'attributes':['id',_0x6050('0xf'),'content',_0x6050('0x14'),'nameField',_0x6050('0x15'),_0x6050('0x16')],'include':[{'model':_0x6050('0xd'),'as':_0x6050('0xd'),'attributes':['id',_0x6050('0x8')]}]}]}]},'log':_0x6050('0x17')});};};