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