Built motion from commit (unavailable).|2.4.18
[motion2.git] / server / services / ami / rpc / integrations / sugarcrm.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 _0xff60=['Fields','type','nameField','customField','GetSugarcrmAccount','../../client','getSugarcrmAccounts','name','username','password','remoteUri','serverUrl','Configurations','SugarcrmField','Subjects','content','variableName','Variable','Descriptions','key','keyType','keyContent'];(function(_0xe64869,_0x5b9d22){var _0x3da130=function(_0x9d1302){while(--_0x9d1302){_0xe64869['push'](_0xe64869['shift']());}};_0x3da130(++_0x5b9d22);}(_0xff60,0xcb));var _0x0ff6=function(_0x47a7d0,_0x4e182d){_0x47a7d0=_0x47a7d0-0x0;var _0xb9bd08=_0xff60[_0x47a7d0];return _0xb9bd08;};'use strict';var client=require(_0x0ff6('0x0'));exports[_0x0ff6('0x1')]=function(){return function(_0x521201){return client['Request']('GetSugarcrmAccount',{'options':{'raw':![],'attributes':['id',_0x0ff6('0x2'),_0x0ff6('0x3'),_0x0ff6('0x4'),_0x0ff6('0x5'),_0x0ff6('0x6')],'include':[{'model':'SugarcrmConfiguration','as':_0x0ff6('0x7'),'attributes':['id',_0x0ff6('0x2')],'include':[{'model':_0x0ff6('0x8'),'as':_0x0ff6('0x9'),'attributes':['id','type',_0x0ff6('0xa'),_0x0ff6('0xb')],'include':[{'model':_0x0ff6('0xc'),'as':_0x0ff6('0xc'),'attributes':['id','name']}]},{'model':_0x0ff6('0x8'),'as':_0x0ff6('0xd'),'attributes':['id','type','content',_0x0ff6('0xe'),_0x0ff6('0xf'),_0x0ff6('0x10'),_0x0ff6('0xb')],'include':[{'model':_0x0ff6('0xc'),'as':'Variable','attributes':['id',_0x0ff6('0x2')]}]},{'model':_0x0ff6('0x8'),'as':_0x0ff6('0x11'),'attributes':['id',_0x0ff6('0x12'),_0x0ff6('0xa'),'idField',_0x0ff6('0x13'),_0x0ff6('0x14'),'variableName'],'include':[{'model':_0x0ff6('0xc'),'as':_0x0ff6('0xc'),'attributes':['id',_0x0ff6('0x2')]}]}]}]},'log':_0x0ff6('0x15')});};};