Built motion from commit (unavailable).|2.5.9
[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 _0x653c=['Subjects','type','content','Variable','Descriptions','key','keyType','keyContent','variableName','Fields','nameField','../../client','getSugarcrmAccounts','Request','GetSugarcrmAccount','name','username','password','remoteUri','serverUrl','Configurations','SugarcrmField'];(function(_0x31a371,_0x50828e){var _0x2a5bd6=function(_0x2fb481){while(--_0x2fb481){_0x31a371['push'](_0x31a371['shift']());}};_0x2a5bd6(++_0x50828e);}(_0x653c,0xbb));var _0xc653=function(_0x25860d,_0x201146){_0x25860d=_0x25860d-0x0;var _0x10fca5=_0x653c[_0x25860d];return _0x10fca5;};'use strict';var client=require(_0xc653('0x0'));exports[_0xc653('0x1')]=function(){return function(_0x38de46){return client[_0xc653('0x2')](_0xc653('0x3'),{'options':{'raw':![],'attributes':['id',_0xc653('0x4'),_0xc653('0x5'),_0xc653('0x6'),_0xc653('0x7'),_0xc653('0x8')],'include':[{'model':'SugarcrmConfiguration','as':_0xc653('0x9'),'attributes':['id','name'],'include':[{'model':_0xc653('0xa'),'as':_0xc653('0xb'),'attributes':['id',_0xc653('0xc'),_0xc653('0xd'),'variableName'],'include':[{'model':_0xc653('0xe'),'as':_0xc653('0xe'),'attributes':['id',_0xc653('0x4')]}]},{'model':_0xc653('0xa'),'as':_0xc653('0xf'),'attributes':['id',_0xc653('0xc'),_0xc653('0xd'),_0xc653('0x10'),_0xc653('0x11'),_0xc653('0x12'),_0xc653('0x13')],'include':[{'model':_0xc653('0xe'),'as':_0xc653('0xe'),'attributes':['id',_0xc653('0x4')]}]},{'model':'SugarcrmField','as':_0xc653('0x14'),'attributes':['id',_0xc653('0xc'),_0xc653('0xd'),'idField',_0xc653('0x15'),'customField','variableName'],'include':[{'model':_0xc653('0xe'),'as':_0xc653('0xe'),'attributes':['id',_0xc653('0x4')]}]}]}]},'log':'GetSugarcrmAccount'});};};