8337692db0de1e7f6e3445e4790850ba4be43fcf
[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 _0x44f5=['Variable','Descriptions','key','keyType','Fields','nameField','customField','getDynamics365Accounts','Request','GetDynamics365Account','name','username','remoteUri','tenantId','clientId','clientSecret','serverUrl','description','Dynamics365Configuration','Configurations','ticketType','Dynamics365Field','Subjects','type','content','variableName'];(function(_0x21b359,_0x4dc80e){var _0x57b8e7=function(_0x135adb){while(--_0x135adb){_0x21b359['push'](_0x21b359['shift']());}};_0x57b8e7(++_0x4dc80e);}(_0x44f5,0x1a7));var _0x544f=function(_0x31e9a5,_0x520323){_0x31e9a5=_0x31e9a5-0x0;var _0x96859d=_0x44f5[_0x31e9a5];return _0x96859d;};'use strict';var client=require('../../client');exports[_0x544f('0x0')]=function(){return function(_0x14c391){return client[_0x544f('0x1')](_0x544f('0x2'),{'options':{'raw':![],'attributes':['id',_0x544f('0x3'),_0x544f('0x4'),'password',_0x544f('0x5'),_0x544f('0x6'),_0x544f('0x7'),_0x544f('0x8'),_0x544f('0x9'),_0x544f('0xa')],'include':[{'model':_0x544f('0xb'),'as':_0x544f('0xc'),'attributes':['id',_0x544f('0x3'),_0x544f('0xd')],'include':[{'model':_0x544f('0xe'),'as':_0x544f('0xf'),'attributes':['id',_0x544f('0x10'),_0x544f('0x11'),_0x544f('0x12')],'include':[{'model':_0x544f('0x13'),'as':_0x544f('0x13'),'attributes':['id',_0x544f('0x3')]}]},{'model':_0x544f('0xe'),'as':_0x544f('0x14'),'attributes':['id',_0x544f('0x10'),_0x544f('0x11'),_0x544f('0x15'),_0x544f('0x16'),'keyContent','variableName'],'include':[{'model':_0x544f('0x13'),'as':_0x544f('0x13'),'attributes':['id',_0x544f('0x3')]}]},{'model':_0x544f('0xe'),'as':_0x544f('0x17'),'attributes':['id',_0x544f('0x10'),_0x544f('0x11'),'idField',_0x544f('0x18'),_0x544f('0x19'),_0x544f('0x12')],'include':[{'model':'Variable','as':_0x544f('0x13'),'attributes':['id',_0x544f('0x3')]}]}]}]},'log':'GetDynamics365Account'});};};