e3e625b59e91b4989b9dd1e99ae71e1dacec2580
[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 _0xf021=['Configurations','name','ticketType','Dynamics365Field','type','Variable','Descriptions','key','keyType','keyContent','content','idField','nameField','customField','variableName','../../client','getDynamics365Accounts','Request','GetDynamics365Account','username','remoteUri','tenantId','serverUrl','Dynamics365Configuration'];(function(_0x36d021,_0x6bc021){var _0x3d5784=function(_0x18e04f){while(--_0x18e04f){_0x36d021['push'](_0x36d021['shift']());}};_0x3d5784(++_0x6bc021);}(_0xf021,0x18f));var _0x1f02=function(_0x3378a5,_0x317f7f){_0x3378a5=_0x3378a5-0x0;var _0x43235f=_0xf021[_0x3378a5];return _0x43235f;};'use strict';var client=require(_0x1f02('0x0'));exports[_0x1f02('0x1')]=function(){return function(_0x20e504){return client[_0x1f02('0x2')](_0x1f02('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x1f02('0x4'),'password',_0x1f02('0x5'),_0x1f02('0x6'),'clientId','clientSecret',_0x1f02('0x7'),'description'],'include':[{'model':_0x1f02('0x8'),'as':_0x1f02('0x9'),'attributes':['id',_0x1f02('0xa'),_0x1f02('0xb')],'include':[{'model':_0x1f02('0xc'),'as':'Subjects','attributes':['id',_0x1f02('0xd'),'content','variableName'],'include':[{'model':'Variable','as':_0x1f02('0xe'),'attributes':['id',_0x1f02('0xa')]}]},{'model':_0x1f02('0xc'),'as':_0x1f02('0xf'),'attributes':['id',_0x1f02('0xd'),'content',_0x1f02('0x10'),_0x1f02('0x11'),_0x1f02('0x12'),'variableName'],'include':[{'model':_0x1f02('0xe'),'as':_0x1f02('0xe'),'attributes':['id',_0x1f02('0xa')]}]},{'model':'Dynamics365Field','as':'Fields','attributes':['id','type',_0x1f02('0x13'),_0x1f02('0x14'),_0x1f02('0x15'),_0x1f02('0x16'),_0x1f02('0x17')],'include':[{'model':_0x1f02('0xe'),'as':_0x1f02('0xe'),'attributes':['id',_0x1f02('0xa')]}]}]}]},'log':'GetDynamics365Account'});};};