0187b53c267d99124e8496ce5410bdc6d84c2dd1
[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 _0x7a9e=['idField','customField','GetDynamics365Account','username','password','remoteUri','clientSecret','description','Dynamics365Configuration','Configurations','name','ticketType','Dynamics365Field','Subjects','type','content','Variable','key','keyContent','variableName','Fields'];(function(_0x10224d,_0x5dead7){var _0x178de5=function(_0xb15f96){while(--_0xb15f96){_0x10224d['push'](_0x10224d['shift']());}};_0x178de5(++_0x5dead7);}(_0x7a9e,0x152));var _0xe7a9=function(_0xfae23b,_0x2be4ba){_0xfae23b=_0xfae23b-0x0;var _0x200640=_0x7a9e[_0xfae23b];return _0x200640;};'use strict';var client=require('../../client');exports['getDynamics365Accounts']=function(){return function(_0x50b66e){return client['Request'](_0xe7a9('0x0'),{'options':{'raw':![],'attributes':['id','name',_0xe7a9('0x1'),_0xe7a9('0x2'),_0xe7a9('0x3'),'tenantId','clientId',_0xe7a9('0x4'),'serverUrl',_0xe7a9('0x5')],'include':[{'model':_0xe7a9('0x6'),'as':_0xe7a9('0x7'),'attributes':['id',_0xe7a9('0x8'),_0xe7a9('0x9')],'include':[{'model':_0xe7a9('0xa'),'as':_0xe7a9('0xb'),'attributes':['id',_0xe7a9('0xc'),_0xe7a9('0xd'),'variableName'],'include':[{'model':_0xe7a9('0xe'),'as':_0xe7a9('0xe'),'attributes':['id','name']}]},{'model':_0xe7a9('0xa'),'as':'Descriptions','attributes':['id',_0xe7a9('0xc'),_0xe7a9('0xd'),_0xe7a9('0xf'),'keyType',_0xe7a9('0x10'),_0xe7a9('0x11')],'include':[{'model':_0xe7a9('0xe'),'as':_0xe7a9('0xe'),'attributes':['id',_0xe7a9('0x8')]}]},{'model':_0xe7a9('0xa'),'as':_0xe7a9('0x12'),'attributes':['id',_0xe7a9('0xc'),'content',_0xe7a9('0x13'),'nameField',_0xe7a9('0x14'),_0xe7a9('0x11')],'include':[{'model':_0xe7a9('0xe'),'as':_0xe7a9('0xe'),'attributes':['id','name']}]}]}]},'log':_0xe7a9('0x0')});};};