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