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