330004b3e89bea3fa06a33f37fe1951604bb19b2
[motion2.git] / server / services / ami / rpc / integrations / vtiger.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 _0x8a1f=['Configurations','Subjects','type','content','variableName','Variable','key','keyType','keyContent','name','VtigerField','Fields','customField','../../client','getVtigerAccounts','Request','GetVtigerAccount','description','accessKey','remoteUri','serverUrl','VtigerConfiguration'];(function(_0x1eccea,_0x1aeb9a){var _0x54e365=function(_0x5abb02){while(--_0x5abb02){_0x1eccea['push'](_0x1eccea['shift']());}};_0x54e365(++_0x1aeb9a);}(_0x8a1f,0x1db));var _0xf8a1=function(_0x3fcc96,_0x1c65d4){_0x3fcc96=_0x3fcc96-0x0;var _0x5caa7a=_0x8a1f[_0x3fcc96];return _0x5caa7a;};'use strict';var client=require(_0xf8a1('0x0'));exports[_0xf8a1('0x1')]=function(){return function(_0x4a7cfd){return client[_0xf8a1('0x2')](_0xf8a1('0x3'),{'options':{'raw':![],'attributes':['id','name',_0xf8a1('0x4'),'username',_0xf8a1('0x5'),_0xf8a1('0x6'),_0xf8a1('0x7')],'include':[{'model':_0xf8a1('0x8'),'as':_0xf8a1('0x9'),'attributes':['id','name'],'include':[{'model':'VtigerField','as':_0xf8a1('0xa'),'attributes':['id',_0xf8a1('0xb'),_0xf8a1('0xc'),_0xf8a1('0xd')],'include':[{'model':_0xf8a1('0xe'),'as':_0xf8a1('0xe'),'attributes':['id','name']}]},{'model':'VtigerField','as':'Descriptions','attributes':['id',_0xf8a1('0xb'),_0xf8a1('0xc'),_0xf8a1('0xf'),_0xf8a1('0x10'),_0xf8a1('0x11'),_0xf8a1('0xd')],'include':[{'model':_0xf8a1('0xe'),'as':_0xf8a1('0xe'),'attributes':['id',_0xf8a1('0x12')]}]},{'model':_0xf8a1('0x13'),'as':_0xf8a1('0x14'),'attributes':['id',_0xf8a1('0xb'),_0xf8a1('0xc'),'idField','nameField',_0xf8a1('0x15'),_0xf8a1('0xd')],'include':[{'model':_0xf8a1('0xe'),'as':_0xf8a1('0xe'),'attributes':['id',_0xf8a1('0x12')]}]}]}]},'log':'GetVtigerAccount'});};};