Built motion from commit (unavailable).|2.2.0
[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 _0xa543=['serverUrl','SugarcrmConfiguration','SugarcrmField','Subjects','type','content','variableName','Variable','Descriptions','key','keyType','keyContent','nameField','../../client','getSugarcrmAccounts','Request','GetSugarcrmAccount','name','password'];(function(_0x4ac50e,_0xeeb151){var _0x14496c=function(_0x27497a){while(--_0x27497a){_0x4ac50e['push'](_0x4ac50e['shift']());}};_0x14496c(++_0xeeb151);}(_0xa543,0xcb));var _0x3a54=function(_0x2660a8,_0x193313){_0x2660a8=_0x2660a8-0x0;var _0xaf79ce=_0xa543[_0x2660a8];return _0xaf79ce;};'use strict';var client=require(_0x3a54('0x0'));exports[_0x3a54('0x1')]=function(){return function(_0x49c8be){return client[_0x3a54('0x2')](_0x3a54('0x3'),{'options':{'raw':![],'attributes':['id',_0x3a54('0x4'),'username',_0x3a54('0x5'),'remoteUri',_0x3a54('0x6')],'include':[{'model':_0x3a54('0x7'),'as':'Configurations','attributes':['id',_0x3a54('0x4')],'include':[{'model':_0x3a54('0x8'),'as':_0x3a54('0x9'),'attributes':['id',_0x3a54('0xa'),_0x3a54('0xb'),_0x3a54('0xc')],'include':[{'model':_0x3a54('0xd'),'as':'Variable','attributes':['id','name']}]},{'model':_0x3a54('0x8'),'as':_0x3a54('0xe'),'attributes':['id',_0x3a54('0xa'),_0x3a54('0xb'),_0x3a54('0xf'),_0x3a54('0x10'),_0x3a54('0x11'),_0x3a54('0xc')],'include':[{'model':'Variable','as':_0x3a54('0xd'),'attributes':['id','name']}]},{'model':_0x3a54('0x8'),'as':'Fields','attributes':['id',_0x3a54('0xa'),_0x3a54('0xb'),'idField',_0x3a54('0x12'),'customField','variableName'],'include':[{'model':_0x3a54('0xd'),'as':_0x3a54('0xd'),'attributes':['id',_0x3a54('0x4')]}]}]}]},'log':'GetSugarcrmAccount'});};};