Built motion from commit (unavailable).|2.5.14
[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 _0xfe95=['getSugarcrmAccounts','GetSugarcrmAccount','name','username','password','remoteUri','serverUrl','SugarcrmConfiguration','SugarcrmField','Subjects','content','Variable','Descriptions','type','key','keyContent','variableName','Fields','idField','nameField','customField'];(function(_0x27a76a,_0x32be35){var _0xd1e923=function(_0x3e00cf){while(--_0x3e00cf){_0x27a76a['push'](_0x27a76a['shift']());}};_0xd1e923(++_0x32be35);}(_0xfe95,0x17a));var _0x5fe9=function(_0x509530,_0x401eb4){_0x509530=_0x509530-0x0;var _0x26cc16=_0xfe95[_0x509530];return _0x26cc16;};'use strict';var client=require('../../client');exports[_0x5fe9('0x0')]=function(){return function(_0x550052){return client['Request'](_0x5fe9('0x1'),{'options':{'raw':![],'attributes':['id',_0x5fe9('0x2'),_0x5fe9('0x3'),_0x5fe9('0x4'),_0x5fe9('0x5'),_0x5fe9('0x6')],'include':[{'model':_0x5fe9('0x7'),'as':'Configurations','attributes':['id','name'],'include':[{'model':_0x5fe9('0x8'),'as':_0x5fe9('0x9'),'attributes':['id','type',_0x5fe9('0xa'),'variableName'],'include':[{'model':'Variable','as':_0x5fe9('0xb'),'attributes':['id','name']}]},{'model':_0x5fe9('0x8'),'as':_0x5fe9('0xc'),'attributes':['id',_0x5fe9('0xd'),'content',_0x5fe9('0xe'),'keyType',_0x5fe9('0xf'),_0x5fe9('0x10')],'include':[{'model':_0x5fe9('0xb'),'as':_0x5fe9('0xb'),'attributes':['id',_0x5fe9('0x2')]}]},{'model':'SugarcrmField','as':_0x5fe9('0x11'),'attributes':['id',_0x5fe9('0xd'),'content',_0x5fe9('0x12'),_0x5fe9('0x13'),_0x5fe9('0x14'),'variableName'],'include':[{'model':'Variable','as':_0x5fe9('0xb'),'attributes':['id',_0x5fe9('0x2')]}]}]}]},'log':_0x5fe9('0x1')});};};