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 _0x1985=['SugarcrmField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','idField','nameField','customField','../../client','GetSugarcrmAccount','name','username','password','remoteUri','SugarcrmConfiguration','Configurations'];(function(_0x46846d,_0x383818){var _0x51e3e5=function(_0x39a3fa){while(--_0x39a3fa){_0x46846d['push'](_0x46846d['shift']());}};_0x51e3e5(++_0x383818);}(_0x1985,0x138));var _0x5198=function(_0x418f57,_0x645de0){_0x418f57=_0x418f57-0x0;var _0x144ecb=_0x1985[_0x418f57];return _0x144ecb;};'use strict';var client=require(_0x5198('0x0'));exports['getSugarcrmAccounts']=function(){return function(_0x6a6a90){return client['Request'](_0x5198('0x1'),{'options':{'raw':![],'attributes':['id',_0x5198('0x2'),_0x5198('0x3'),_0x5198('0x4'),_0x5198('0x5'),'serverUrl'],'include':[{'model':_0x5198('0x6'),'as':_0x5198('0x7'),'attributes':['id',_0x5198('0x2')],'include':[{'model':_0x5198('0x8'),'as':_0x5198('0x9'),'attributes':['id',_0x5198('0xa'),_0x5198('0xb'),_0x5198('0xc')],'include':[{'model':_0x5198('0xd'),'as':_0x5198('0xd'),'attributes':['id',_0x5198('0x2')]}]},{'model':_0x5198('0x8'),'as':'Descriptions','attributes':['id',_0x5198('0xa'),_0x5198('0xb'),_0x5198('0xe'),_0x5198('0xf'),_0x5198('0x10'),_0x5198('0xc')],'include':[{'model':_0x5198('0xd'),'as':_0x5198('0xd'),'attributes':['id',_0x5198('0x2')]}]},{'model':_0x5198('0x8'),'as':'Fields','attributes':['id','type',_0x5198('0xb'),_0x5198('0x11'),_0x5198('0x12'),_0x5198('0x13'),'variableName'],'include':[{'model':_0x5198('0xd'),'as':'Variable','attributes':['id',_0x5198('0x2')]}]}]}]},'log':'GetSugarcrmAccount'});};};