e917ed6eb2c9ae963a819c59f9cefacc37725606
[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 _0xf17f=['keyContent','nameField','customField','CloudProvider','data2','../../client','getDynamics365Accounts','GetDynamics365Account','password','remoteUri','tenantId','clientId','serverUrl','description','Dynamics365Configuration','Configurations','ticketType','moduleCreate','additionalSearchContact','Dynamics365Field','Subjects','type','variableName','Variable','name','content','key'];(function(_0x1928c9,_0x13a6d1){var _0x51b5fb=function(_0x24cf70){while(--_0x24cf70){_0x1928c9['push'](_0x1928c9['shift']());}};_0x51b5fb(++_0x13a6d1);}(_0xf17f,0x113));var _0xff17=function(_0x271a95,_0x4d2a07){_0x271a95=_0x271a95-0x0;var _0x3fa489=_0xf17f[_0x271a95];return _0x3fa489;};'use strict';var client=require(_0xff17('0x0'));exports[_0xff17('0x1')]=function(){return function(_0x43841b){return client['Request'](_0xff17('0x2'),{'options':{'raw':![],'attributes':['id','name','username',_0xff17('0x3'),_0xff17('0x4'),_0xff17('0x5'),_0xff17('0x6'),'clientSecret',_0xff17('0x7'),_0xff17('0x8'),'modernAuthentication'],'include':[{'model':_0xff17('0x9'),'as':_0xff17('0xa'),'attributes':['id','name',_0xff17('0xb'),_0xff17('0xc'),_0xff17('0xd'),'openNewTab'],'include':[{'model':_0xff17('0xe'),'as':_0xff17('0xf'),'attributes':['id',_0xff17('0x10'),'content',_0xff17('0x11')],'include':[{'model':_0xff17('0x12'),'as':_0xff17('0x12'),'attributes':['id',_0xff17('0x13')]}]},{'model':'Dynamics365Field','as':'Descriptions','attributes':['id',_0xff17('0x10'),_0xff17('0x14'),_0xff17('0x15'),'keyType',_0xff17('0x16'),_0xff17('0x11')],'include':[{'model':'Variable','as':_0xff17('0x12'),'attributes':['id',_0xff17('0x13')]}]},{'model':'Dynamics365Field','as':'Fields','attributes':['id','type',_0xff17('0x14'),'idField',_0xff17('0x17'),_0xff17('0x18'),_0xff17('0x11')],'include':[{'model':_0xff17('0x12'),'as':_0xff17('0x12'),'attributes':['id','name']}]}]},{'model':_0xff17('0x19'),'as':_0xff17('0x19'),'attributes':['id',_0xff17('0x1a'),'data5','data7']}]},'log':_0xff17('0x2')});};};