4f89ed836df01b058d4899e6b959f321afe38a17
[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 _0xb18e=['serverUrl','description','Dynamics365Configuration','name','ticketType','Subjects','type','content','variableName','Variable','Dynamics365Field','Descriptions','key','keyType','Fields','idField','nameField','GetDynamics365Account','username','password','tenantId','clientId','clientSecret'];(function(_0x4e11e7,_0x42d0b6){var _0x1d7d39=function(_0x416030){while(--_0x416030){_0x4e11e7['push'](_0x4e11e7['shift']());}};_0x1d7d39(++_0x42d0b6);}(_0xb18e,0x181));var _0xeb18=function(_0xbf5e16,_0x146ce3){_0xbf5e16=_0xbf5e16-0x0;var _0x5975a5=_0xb18e[_0xbf5e16];return _0x5975a5;};'use strict';var client=require('../../client');exports['getDynamics365Accounts']=function(){return function(_0x1c3091){return client['Request'](_0xeb18('0x0'),{'options':{'raw':![],'attributes':['id','name',_0xeb18('0x1'),_0xeb18('0x2'),'remoteUri',_0xeb18('0x3'),_0xeb18('0x4'),_0xeb18('0x5'),_0xeb18('0x6'),_0xeb18('0x7')],'include':[{'model':_0xeb18('0x8'),'as':'Configurations','attributes':['id',_0xeb18('0x9'),_0xeb18('0xa')],'include':[{'model':'Dynamics365Field','as':_0xeb18('0xb'),'attributes':['id',_0xeb18('0xc'),_0xeb18('0xd'),_0xeb18('0xe')],'include':[{'model':_0xeb18('0xf'),'as':_0xeb18('0xf'),'attributes':['id',_0xeb18('0x9')]}]},{'model':_0xeb18('0x10'),'as':_0xeb18('0x11'),'attributes':['id',_0xeb18('0xc'),'content',_0xeb18('0x12'),_0xeb18('0x13'),'keyContent',_0xeb18('0xe')],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0xeb18('0x9')]}]},{'model':_0xeb18('0x10'),'as':_0xeb18('0x14'),'attributes':['id','type','content',_0xeb18('0x15'),_0xeb18('0x16'),'customField',_0xeb18('0xe')],'include':[{'model':_0xeb18('0xf'),'as':_0xeb18('0xf'),'attributes':['id','name']}]}]}]},'log':_0xeb18('0x0')});};};