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 _0xf4f3=['customField','../../client','getSugarcrmAccounts','Request','GetSugarcrmAccount','username','password','remoteUri','Configurations','name','SugarcrmField','Subjects','type','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','idField'];(function(_0x1a72f3,_0x217011){var _0x57ef47=function(_0x20123d){while(--_0x20123d){_0x1a72f3['push'](_0x1a72f3['shift']());}};_0x57ef47(++_0x217011);}(_0xf4f3,0x9b));var _0x3f4f=function(_0x35126c,_0x5530b6){_0x35126c=_0x35126c-0x0;var _0x379dcf=_0xf4f3[_0x35126c];return _0x379dcf;};'use strict';var client=require(_0x3f4f('0x0'));exports[_0x3f4f('0x1')]=function(){return function(_0x39b00a){return client[_0x3f4f('0x2')](_0x3f4f('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x3f4f('0x4'),_0x3f4f('0x5'),_0x3f4f('0x6'),'serverUrl'],'include':[{'model':'SugarcrmConfiguration','as':_0x3f4f('0x7'),'attributes':['id',_0x3f4f('0x8')],'include':[{'model':_0x3f4f('0x9'),'as':_0x3f4f('0xa'),'attributes':['id',_0x3f4f('0xb'),_0x3f4f('0xc'),'variableName'],'include':[{'model':_0x3f4f('0xd'),'as':_0x3f4f('0xd'),'attributes':['id','name']}]},{'model':'SugarcrmField','as':_0x3f4f('0xe'),'attributes':['id',_0x3f4f('0xb'),_0x3f4f('0xc'),_0x3f4f('0xf'),_0x3f4f('0x10'),_0x3f4f('0x11'),_0x3f4f('0x12')],'include':[{'model':_0x3f4f('0xd'),'as':_0x3f4f('0xd'),'attributes':['id',_0x3f4f('0x8')]}]},{'model':_0x3f4f('0x9'),'as':_0x3f4f('0x13'),'attributes':['id',_0x3f4f('0xb'),_0x3f4f('0xc'),_0x3f4f('0x14'),'nameField',_0x3f4f('0x15'),'variableName'],'include':[{'model':_0x3f4f('0xd'),'as':'Variable','attributes':['id',_0x3f4f('0x8')]}]}]}]},'log':'GetSugarcrmAccount'});};};