Built motion from commit (unavailable).|2.5.23
[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 _0x701a=['username','password','remoteUri','serverUrl','SugarcrmConfiguration','type','content','variableName','Variable','SugarcrmField','Descriptions','keyType','keyContent','../../client','getSugarcrmAccounts','GetSugarcrmAccount','name'];(function(_0x4f38b8,_0x4c3d2a){var _0x41e3ef=function(_0x4bd2e7){while(--_0x4bd2e7){_0x4f38b8['push'](_0x4f38b8['shift']());}};_0x41e3ef(++_0x4c3d2a);}(_0x701a,0xea));var _0xa701=function(_0x1a8f86,_0x5ed9c4){_0x1a8f86=_0x1a8f86-0x0;var _0x20d876=_0x701a[_0x1a8f86];return _0x20d876;};'use strict';var client=require(_0xa701('0x0'));exports[_0xa701('0x1')]=function(){return function(_0x1e3f1f){return client['Request'](_0xa701('0x2'),{'options':{'raw':![],'attributes':['id',_0xa701('0x3'),_0xa701('0x4'),_0xa701('0x5'),_0xa701('0x6'),_0xa701('0x7')],'include':[{'model':_0xa701('0x8'),'as':'Configurations','attributes':['id',_0xa701('0x3')],'include':[{'model':'SugarcrmField','as':'Subjects','attributes':['id',_0xa701('0x9'),_0xa701('0xa'),_0xa701('0xb')],'include':[{'model':_0xa701('0xc'),'as':'Variable','attributes':['id',_0xa701('0x3')]}]},{'model':_0xa701('0xd'),'as':_0xa701('0xe'),'attributes':['id','type',_0xa701('0xa'),'key',_0xa701('0xf'),_0xa701('0x10'),_0xa701('0xb')],'include':[{'model':_0xa701('0xc'),'as':_0xa701('0xc'),'attributes':['id',_0xa701('0x3')]}]},{'model':_0xa701('0xd'),'as':'Fields','attributes':['id',_0xa701('0x9'),'content','idField','nameField','customField',_0xa701('0xb')],'include':[{'model':_0xa701('0xc'),'as':_0xa701('0xc'),'attributes':['id','name']}]}]}]},'log':'GetSugarcrmAccount'});};};