dc7005e52e1e7464710b609ac2da18922d8f0216
[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 _0x7c9a=['Configurations','SugarcrmField','Subjects','type','content','Variable','key','keyType','keyContent','variableName','Fields','idField','customField','../../client','getSugarcrmAccounts','GetSugarcrmAccount','name','password','remoteUri','SugarcrmConfiguration'];(function(_0x2f4f25,_0x592d31){var _0x6a112a=function(_0x112d68){while(--_0x112d68){_0x2f4f25['push'](_0x2f4f25['shift']());}};_0x6a112a(++_0x592d31);}(_0x7c9a,0x1c5));var _0xa7c9=function(_0x117a03,_0x17b595){_0x117a03=_0x117a03-0x0;var _0x21ffd3=_0x7c9a[_0x117a03];return _0x21ffd3;};'use strict';var client=require(_0xa7c9('0x0'));exports[_0xa7c9('0x1')]=function(){return function(_0x193d0b){return client['Request'](_0xa7c9('0x2'),{'options':{'raw':![],'attributes':['id',_0xa7c9('0x3'),'username',_0xa7c9('0x4'),_0xa7c9('0x5'),'serverUrl'],'include':[{'model':_0xa7c9('0x6'),'as':_0xa7c9('0x7'),'attributes':['id',_0xa7c9('0x3')],'include':[{'model':_0xa7c9('0x8'),'as':_0xa7c9('0x9'),'attributes':['id',_0xa7c9('0xa'),_0xa7c9('0xb'),'variableName'],'include':[{'model':_0xa7c9('0xc'),'as':_0xa7c9('0xc'),'attributes':['id',_0xa7c9('0x3')]}]},{'model':_0xa7c9('0x8'),'as':'Descriptions','attributes':['id',_0xa7c9('0xa'),_0xa7c9('0xb'),_0xa7c9('0xd'),_0xa7c9('0xe'),_0xa7c9('0xf'),_0xa7c9('0x10')],'include':[{'model':'Variable','as':_0xa7c9('0xc'),'attributes':['id','name']}]},{'model':_0xa7c9('0x8'),'as':_0xa7c9('0x11'),'attributes':['id',_0xa7c9('0xa'),'content',_0xa7c9('0x12'),'nameField',_0xa7c9('0x13'),_0xa7c9('0x10')],'include':[{'model':_0xa7c9('0xc'),'as':_0xa7c9('0xc'),'attributes':['id',_0xa7c9('0x3')]}]}]}]},'log':_0xa7c9('0x2')});};};