b48252f4cb8224baf5dbd17569d713d430b02067
[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 _0xd58c=['GetDynamics365Account','username','remoteUri','tenantId','clientId','clientSecret','serverUrl','Configurations','name','ticketType','Dynamics365Field','Subjects','content','variableName','Variable','Descriptions','type','key','keyContent','Fields','idField','../../client','getDynamics365Accounts'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0xd58c,0xb6));var _0xcd58=function(_0x4d8f29,_0x5ab20){_0x4d8f29=_0x4d8f29-0x0;var _0x35e92a=_0xd58c[_0x4d8f29];return _0x35e92a;};'use strict';var client=require(_0xcd58('0x0'));exports[_0xcd58('0x1')]=function(){return function(_0x240323){return client['Request'](_0xcd58('0x2'),{'options':{'raw':![],'attributes':['id','name',_0xcd58('0x3'),'password',_0xcd58('0x4'),_0xcd58('0x5'),_0xcd58('0x6'),_0xcd58('0x7'),_0xcd58('0x8'),'description'],'include':[{'model':'Dynamics365Configuration','as':_0xcd58('0x9'),'attributes':['id',_0xcd58('0xa'),_0xcd58('0xb')],'include':[{'model':_0xcd58('0xc'),'as':_0xcd58('0xd'),'attributes':['id','type',_0xcd58('0xe'),_0xcd58('0xf')],'include':[{'model':'Variable','as':_0xcd58('0x10'),'attributes':['id','name']}]},{'model':_0xcd58('0xc'),'as':_0xcd58('0x11'),'attributes':['id',_0xcd58('0x12'),'content',_0xcd58('0x13'),'keyType',_0xcd58('0x14'),'variableName'],'include':[{'model':_0xcd58('0x10'),'as':_0xcd58('0x10'),'attributes':['id',_0xcd58('0xa')]}]},{'model':_0xcd58('0xc'),'as':_0xcd58('0x15'),'attributes':['id',_0xcd58('0x12'),_0xcd58('0xe'),_0xcd58('0x16'),'nameField','customField',_0xcd58('0xf')],'include':[{'model':_0xcd58('0x10'),'as':_0xcd58('0x10'),'attributes':['id','name']}]}]}]},'log':'GetDynamics365Account'});};};