Built motion from commit (unavailable).|2.5.13
[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 _0x01fe=['username','password','remoteUri','tenantId','clientSecret','description','Dynamics365Configuration','Configurations','name','ticketType','Subjects','type','variableName','Variable','Descriptions','content','key','keyType','keyContent','Fields','idField','nameField','customField','GetDynamics365Account','../../client','Request'];(function(_0x3957cb,_0x32a622){var _0x31e33c=function(_0xca9621){while(--_0xca9621){_0x3957cb['push'](_0x3957cb['shift']());}};_0x31e33c(++_0x32a622);}(_0x01fe,0x102));var _0xe01f=function(_0x1632fc,_0x3065d1){_0x1632fc=_0x1632fc-0x0;var _0x3238c7=_0x01fe[_0x1632fc];return _0x3238c7;};'use strict';var client=require(_0xe01f('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x3ba50c){return client[_0xe01f('0x1')]('GetDynamics365Account',{'options':{'raw':![],'attributes':['id','name',_0xe01f('0x2'),_0xe01f('0x3'),_0xe01f('0x4'),_0xe01f('0x5'),'clientId',_0xe01f('0x6'),'serverUrl',_0xe01f('0x7')],'include':[{'model':_0xe01f('0x8'),'as':_0xe01f('0x9'),'attributes':['id',_0xe01f('0xa'),_0xe01f('0xb')],'include':[{'model':'Dynamics365Field','as':_0xe01f('0xc'),'attributes':['id',_0xe01f('0xd'),'content',_0xe01f('0xe')],'include':[{'model':'Variable','as':_0xe01f('0xf'),'attributes':['id',_0xe01f('0xa')]}]},{'model':'Dynamics365Field','as':_0xe01f('0x10'),'attributes':['id','type',_0xe01f('0x11'),_0xe01f('0x12'),_0xe01f('0x13'),_0xe01f('0x14'),_0xe01f('0xe')],'include':[{'model':_0xe01f('0xf'),'as':_0xe01f('0xf'),'attributes':['id',_0xe01f('0xa')]}]},{'model':'Dynamics365Field','as':_0xe01f('0x15'),'attributes':['id',_0xe01f('0xd'),_0xe01f('0x11'),_0xe01f('0x16'),_0xe01f('0x17'),_0xe01f('0x18'),_0xe01f('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]}]}]},'log':_0xe01f('0x19')});};};