Built motion from commit (unavailable).|2.4.4
[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 _0x196c=['keyContent','variableName','Fields','nameField','customField','getDynamics365Accounts','Request','GetDynamics365Account','name','password','remoteUri','tenantId','clientSecret','serverUrl','description','Configurations','ticketType','Dynamics365Field','Subjects','Variable','type','content','key','keyType'];(function(_0x4f9b18,_0x2cb5ca){var _0x29f20c=function(_0x268b3d){while(--_0x268b3d){_0x4f9b18['push'](_0x4f9b18['shift']());}};_0x29f20c(++_0x2cb5ca);}(_0x196c,0xc5));var _0xc196=function(_0x3873b0,_0x26a314){_0x3873b0=_0x3873b0-0x0;var _0x18a231=_0x196c[_0x3873b0];return _0x18a231;};'use strict';var client=require('../../client');exports[_0xc196('0x0')]=function(){return function(_0x349bcf){return client[_0xc196('0x1')](_0xc196('0x2'),{'options':{'raw':![],'attributes':['id',_0xc196('0x3'),'username',_0xc196('0x4'),_0xc196('0x5'),_0xc196('0x6'),'clientId',_0xc196('0x7'),_0xc196('0x8'),_0xc196('0x9')],'include':[{'model':'Dynamics365Configuration','as':_0xc196('0xa'),'attributes':['id',_0xc196('0x3'),_0xc196('0xb')],'include':[{'model':_0xc196('0xc'),'as':_0xc196('0xd'),'attributes':['id','type','content','variableName'],'include':[{'model':'Variable','as':_0xc196('0xe'),'attributes':['id',_0xc196('0x3')]}]},{'model':_0xc196('0xc'),'as':'Descriptions','attributes':['id',_0xc196('0xf'),_0xc196('0x10'),_0xc196('0x11'),_0xc196('0x12'),_0xc196('0x13'),_0xc196('0x14')],'include':[{'model':_0xc196('0xe'),'as':_0xc196('0xe'),'attributes':['id','name']}]},{'model':_0xc196('0xc'),'as':_0xc196('0x15'),'attributes':['id',_0xc196('0xf'),_0xc196('0x10'),'idField',_0xc196('0x16'),_0xc196('0x17'),_0xc196('0x14')],'include':[{'model':'Variable','as':_0xc196('0xe'),'attributes':['id','name']}]}]}]},'log':_0xc196('0x2')});};};