5106f96e9a27b14f9df7174755d191a01d0e75c3
[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 _0xa552=['password','remoteUri','SugarcrmConfiguration','Configurations','SugarcrmField','Subjects','type','content','variableName','Variable','key','keyType','keyContent','Fields','idField','nameField','customField','getSugarcrmAccounts','Request','GetSugarcrmAccount','name','username'];(function(_0x7390d4,_0x398159){var _0x1554a9=function(_0x5668aa){while(--_0x5668aa){_0x7390d4['push'](_0x7390d4['shift']());}};_0x1554a9(++_0x398159);}(_0xa552,0x69));var _0x2a55=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xa552[_0x3dd15e];return _0x231fd0;};'use strict';var client=require('../../client');exports[_0x2a55('0x0')]=function(){return function(_0x503e69){return client[_0x2a55('0x1')](_0x2a55('0x2'),{'options':{'raw':![],'attributes':['id',_0x2a55('0x3'),_0x2a55('0x4'),_0x2a55('0x5'),_0x2a55('0x6'),'serverUrl'],'include':[{'model':_0x2a55('0x7'),'as':_0x2a55('0x8'),'attributes':['id',_0x2a55('0x3')],'include':[{'model':_0x2a55('0x9'),'as':_0x2a55('0xa'),'attributes':['id',_0x2a55('0xb'),_0x2a55('0xc'),_0x2a55('0xd')],'include':[{'model':_0x2a55('0xe'),'as':'Variable','attributes':['id',_0x2a55('0x3')]}]},{'model':_0x2a55('0x9'),'as':'Descriptions','attributes':['id','type',_0x2a55('0xc'),_0x2a55('0xf'),_0x2a55('0x10'),_0x2a55('0x11'),'variableName'],'include':[{'model':_0x2a55('0xe'),'as':'Variable','attributes':['id',_0x2a55('0x3')]}]},{'model':_0x2a55('0x9'),'as':_0x2a55('0x12'),'attributes':['id',_0x2a55('0xb'),_0x2a55('0xc'),_0x2a55('0x13'),_0x2a55('0x14'),_0x2a55('0x15'),_0x2a55('0xd')],'include':[{'model':'Variable','as':_0x2a55('0xe'),'attributes':['id','name']}]}]}]},'log':_0x2a55('0x2')});};};