Built motion from commit (unavailable).|2.5.30
[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 _0xb88a=['../../client','getSugarcrmAccounts','Request','GetSugarcrmAccount','username','password','SugarcrmConfiguration','name','SugarcrmField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','idField','customField'];(function(_0x50afcc,_0x25fd08){var _0x3c6ca1=function(_0x2a6c88){while(--_0x2a6c88){_0x50afcc['push'](_0x50afcc['shift']());}};_0x3c6ca1(++_0x25fd08);}(_0xb88a,0xf7));var _0xab88=function(_0x2d172a,_0x12cb08){_0x2d172a=_0x2d172a-0x0;var _0x57e27e=_0xb88a[_0x2d172a];return _0x57e27e;};'use strict';var client=require(_0xab88('0x0'));exports[_0xab88('0x1')]=function(){return function(_0x5708b8){return client[_0xab88('0x2')](_0xab88('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xab88('0x4'),_0xab88('0x5'),'remoteUri','serverUrl'],'include':[{'model':_0xab88('0x6'),'as':'Configurations','attributes':['id',_0xab88('0x7')],'include':[{'model':_0xab88('0x8'),'as':_0xab88('0x9'),'attributes':['id',_0xab88('0xa'),_0xab88('0xb'),_0xab88('0xc')],'include':[{'model':_0xab88('0xd'),'as':_0xab88('0xd'),'attributes':['id',_0xab88('0x7')]}]},{'model':_0xab88('0x8'),'as':_0xab88('0xe'),'attributes':['id','type','content',_0xab88('0xf'),_0xab88('0x10'),'keyContent',_0xab88('0xc')],'include':[{'model':'Variable','as':_0xab88('0xd'),'attributes':['id',_0xab88('0x7')]}]},{'model':'SugarcrmField','as':'Fields','attributes':['id',_0xab88('0xa'),'content',_0xab88('0x11'),'nameField',_0xab88('0x12'),_0xab88('0xc')],'include':[{'model':_0xab88('0xd'),'as':_0xab88('0xd'),'attributes':['id',_0xab88('0x7')]}]}]}]},'log':_0xab88('0x3')});};};