Built motion from commit e0fa946e.|2.6.5
[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 _0x352e=['Dynamics365Configuration','ticketType','moduleCreate','additionalSearchContact','Dynamics365Field','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','idField','nameField','customField','CloudProvider','data5','data7','../../client','getDynamics365Accounts','Request','GetDynamics365Account','name','username','password','tenantId','clientId','serverUrl','description','modernAuthentication'];(function(_0x32b9d2,_0x273b5d){var _0x5af2e3=function(_0x2549bc){while(--_0x2549bc){_0x32b9d2['push'](_0x32b9d2['shift']());}};_0x5af2e3(++_0x273b5d);}(_0x352e,0x1a6));var _0xe352=function(_0x142151,_0x4325a4){_0x142151=_0x142151-0x0;var _0x11c479=_0x352e[_0x142151];return _0x11c479;};'use strict';var client=require(_0xe352('0x0'));exports[_0xe352('0x1')]=function(){return function(_0x205a27){return client[_0xe352('0x2')](_0xe352('0x3'),{'options':{'raw':![],'attributes':['id',_0xe352('0x4'),_0xe352('0x5'),_0xe352('0x6'),'remoteUri',_0xe352('0x7'),_0xe352('0x8'),'clientSecret',_0xe352('0x9'),_0xe352('0xa'),_0xe352('0xb')],'include':[{'model':_0xe352('0xc'),'as':'Configurations','attributes':['id',_0xe352('0x4'),_0xe352('0xd'),_0xe352('0xe'),_0xe352('0xf'),'openNewTab'],'include':[{'model':_0xe352('0x10'),'as':_0xe352('0x11'),'attributes':['id',_0xe352('0x12'),_0xe352('0x13'),_0xe352('0x14')],'include':[{'model':_0xe352('0x15'),'as':'Variable','attributes':['id','name']}]},{'model':_0xe352('0x10'),'as':_0xe352('0x16'),'attributes':['id',_0xe352('0x12'),_0xe352('0x13'),_0xe352('0x17'),_0xe352('0x18'),'keyContent',_0xe352('0x14')],'include':[{'model':_0xe352('0x15'),'as':'Variable','attributes':['id',_0xe352('0x4')]}]},{'model':_0xe352('0x10'),'as':'Fields','attributes':['id',_0xe352('0x12'),_0xe352('0x13'),_0xe352('0x19'),_0xe352('0x1a'),_0xe352('0x1b'),_0xe352('0x14')],'include':[{'model':_0xe352('0x15'),'as':_0xe352('0x15'),'attributes':['id','name']}]}]},{'model':_0xe352('0x1c'),'as':'CloudProvider','attributes':['id','data2',_0xe352('0x1d'),_0xe352('0x1e')]}]},'log':'GetDynamics365Account'});};};