52cc33a80b10c4d55748456b8c0efc38500e596b
[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 _0x495e=['GetDynamics365Account','name','username','remoteUri','tenantId','clientId','clientSecret','serverUrl','description','Dynamics365Configuration','Dynamics365Field','type','content','variableName','Variable','Descriptions','key','keyType','Fields','idField','customField','../../client','Request'];(function(_0x2c8649,_0x590b18){var _0x32ee28=function(_0x23eac8){while(--_0x23eac8){_0x2c8649['push'](_0x2c8649['shift']());}};_0x32ee28(++_0x590b18);}(_0x495e,0xfb));var _0xe495=function(_0x129a57,_0x330d03){_0x129a57=_0x129a57-0x0;var _0xa7147c=_0x495e[_0x129a57];return _0xa7147c;};'use strict';var client=require(_0xe495('0x0'));exports['getDynamics365Accounts']=function(){return function(_0x47f8b7){return client[_0xe495('0x1')](_0xe495('0x2'),{'options':{'raw':![],'attributes':['id',_0xe495('0x3'),_0xe495('0x4'),'password',_0xe495('0x5'),_0xe495('0x6'),_0xe495('0x7'),_0xe495('0x8'),_0xe495('0x9'),_0xe495('0xa')],'include':[{'model':_0xe495('0xb'),'as':'Configurations','attributes':['id','name','ticketType'],'include':[{'model':_0xe495('0xc'),'as':'Subjects','attributes':['id',_0xe495('0xd'),_0xe495('0xe'),_0xe495('0xf')],'include':[{'model':_0xe495('0x10'),'as':_0xe495('0x10'),'attributes':['id','name']}]},{'model':_0xe495('0xc'),'as':_0xe495('0x11'),'attributes':['id',_0xe495('0xd'),'content',_0xe495('0x12'),_0xe495('0x13'),'keyContent','variableName'],'include':[{'model':_0xe495('0x10'),'as':_0xe495('0x10'),'attributes':['id','name']}]},{'model':_0xe495('0xc'),'as':_0xe495('0x14'),'attributes':['id',_0xe495('0xd'),_0xe495('0xe'),_0xe495('0x15'),'nameField',_0xe495('0x16'),_0xe495('0xf')],'include':[{'model':_0xe495('0x10'),'as':_0xe495('0x10'),'attributes':['id',_0xe495('0x3')]}]}]}]},'log':'GetDynamics365Account'});};};