eeaaa13a465b29963de684dadcda619d719070dc
[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 _0x8ae0=['Subjects','content','Descriptions','type','key','keyType','keyContent','variableName','Variable','Fields','idField','nameField','customField','../../client','getSugarcrmAccounts','Request','GetSugarcrmAccount','username','password','remoteUri','serverUrl','SugarcrmConfiguration','name','SugarcrmField'];(function(_0x2cc569,_0x4e9568){var _0x1bfc2e=function(_0x5b8fcb){while(--_0x5b8fcb){_0x2cc569['push'](_0x2cc569['shift']());}};_0x1bfc2e(++_0x4e9568);}(_0x8ae0,0x115));var _0x08ae=function(_0x4b055c,_0x4b870b){_0x4b055c=_0x4b055c-0x0;var _0x4b62bb=_0x8ae0[_0x4b055c];return _0x4b62bb;};'use strict';var client=require(_0x08ae('0x0'));exports[_0x08ae('0x1')]=function(){return function(_0x16ee44){return client[_0x08ae('0x2')](_0x08ae('0x3'),{'options':{'raw':![],'attributes':['id','name',_0x08ae('0x4'),_0x08ae('0x5'),_0x08ae('0x6'),_0x08ae('0x7')],'include':[{'model':_0x08ae('0x8'),'as':'Configurations','attributes':['id',_0x08ae('0x9')],'include':[{'model':_0x08ae('0xa'),'as':_0x08ae('0xb'),'attributes':['id','type',_0x08ae('0xc'),'variableName'],'include':[{'model':'Variable','as':'Variable','attributes':['id',_0x08ae('0x9')]}]},{'model':_0x08ae('0xa'),'as':_0x08ae('0xd'),'attributes':['id',_0x08ae('0xe'),'content',_0x08ae('0xf'),_0x08ae('0x10'),_0x08ae('0x11'),_0x08ae('0x12')],'include':[{'model':_0x08ae('0x13'),'as':'Variable','attributes':['id',_0x08ae('0x9')]}]},{'model':_0x08ae('0xa'),'as':_0x08ae('0x14'),'attributes':['id','type',_0x08ae('0xc'),_0x08ae('0x15'),_0x08ae('0x16'),_0x08ae('0x17'),_0x08ae('0x12')],'include':[{'model':_0x08ae('0x13'),'as':_0x08ae('0x13'),'attributes':['id',_0x08ae('0x9')]}]}]}]},'log':_0x08ae('0x3')});};};