75778c03e94ee688708d4232f34c11b15aaabe5f
[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 _0x3685=['Configurations','Dynamics365Field','Subjects','type','content','variableName','Variable','Descriptions','keyType','keyContent','Fields','idField','nameField','customField','../../client','Request','GetDynamics365Account','name','username','password','remoteUri','tenantId','clientId','clientSecret','description','Dynamics365Configuration'];(function(_0x1ac595,_0x5d2081){var _0x455fff=function(_0x3043ee){while(--_0x3043ee){_0x1ac595['push'](_0x1ac595['shift']());}};_0x455fff(++_0x5d2081);}(_0x3685,0xf8));var _0x5368=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x3685[_0x122ef9];return _0x42fba0;};'use strict';var client=require(_0x5368('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x31ec8e){return client[_0x5368('0x1')](_0x5368('0x2'),{'options':{'raw':![],'attributes':['id',_0x5368('0x3'),_0x5368('0x4'),_0x5368('0x5'),_0x5368('0x6'),_0x5368('0x7'),_0x5368('0x8'),_0x5368('0x9'),'serverUrl',_0x5368('0xa')],'include':[{'model':_0x5368('0xb'),'as':_0x5368('0xc'),'attributes':['id',_0x5368('0x3'),'ticketType'],'include':[{'model':_0x5368('0xd'),'as':_0x5368('0xe'),'attributes':['id',_0x5368('0xf'),_0x5368('0x10'),_0x5368('0x11')],'include':[{'model':_0x5368('0x12'),'as':_0x5368('0x12'),'attributes':['id',_0x5368('0x3')]}]},{'model':'Dynamics365Field','as':_0x5368('0x13'),'attributes':['id',_0x5368('0xf'),_0x5368('0x10'),'key',_0x5368('0x14'),_0x5368('0x15'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x5368('0x3')]}]},{'model':_0x5368('0xd'),'as':_0x5368('0x16'),'attributes':['id',_0x5368('0xf'),_0x5368('0x10'),_0x5368('0x17'),_0x5368('0x18'),_0x5368('0x19'),_0x5368('0x11')],'include':[{'model':_0x5368('0x12'),'as':'Variable','attributes':['id',_0x5368('0x3')]}]}]}]},'log':_0x5368('0x2')});};};