Built motion from commit (unavailable).|2.5.1
[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 _0xdcec=['customField','GetSugarcrmAccount','../../client','getSugarcrmAccounts','Request','name','username','password','serverUrl','SugarcrmConfiguration','type','content','Variable','SugarcrmField','Descriptions','key','keyType','variableName','Fields','idField','nameField'];(function(_0x19a20d,_0x490b4f){var _0x25829c=function(_0x148f2a){while(--_0x148f2a){_0x19a20d['push'](_0x19a20d['shift']());}};_0x25829c(++_0x490b4f);}(_0xdcec,0x1bb));var _0xcdce=function(_0x172ed7,_0x3d08fd){_0x172ed7=_0x172ed7-0x0;var _0xfa8f61=_0xdcec[_0x172ed7];return _0xfa8f61;};'use strict';var client=require(_0xcdce('0x0'));exports[_0xcdce('0x1')]=function(){return function(_0x2f10f1){return client[_0xcdce('0x2')]('GetSugarcrmAccount',{'options':{'raw':![],'attributes':['id',_0xcdce('0x3'),_0xcdce('0x4'),_0xcdce('0x5'),'remoteUri',_0xcdce('0x6')],'include':[{'model':_0xcdce('0x7'),'as':'Configurations','attributes':['id',_0xcdce('0x3')],'include':[{'model':'SugarcrmField','as':'Subjects','attributes':['id',_0xcdce('0x8'),_0xcdce('0x9'),'variableName'],'include':[{'model':_0xcdce('0xa'),'as':'Variable','attributes':['id',_0xcdce('0x3')]}]},{'model':_0xcdce('0xb'),'as':_0xcdce('0xc'),'attributes':['id',_0xcdce('0x8'),_0xcdce('0x9'),_0xcdce('0xd'),_0xcdce('0xe'),'keyContent',_0xcdce('0xf')],'include':[{'model':_0xcdce('0xa'),'as':'Variable','attributes':['id',_0xcdce('0x3')]}]},{'model':'SugarcrmField','as':_0xcdce('0x10'),'attributes':['id',_0xcdce('0x8'),_0xcdce('0x9'),_0xcdce('0x11'),_0xcdce('0x12'),_0xcdce('0x13'),_0xcdce('0xf')],'include':[{'model':_0xcdce('0xa'),'as':_0xcdce('0xa'),'attributes':['id',_0xcdce('0x3')]}]}]}]},'log':_0xcdce('0x14')});};};