a6c3c21be5d6c21a08deb25e45db8d405d816d13
[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 _0xeca4=['getVtigerAccounts','Request','GetVtigerAccount','name','username','serverUrl','VtigerConfiguration','VtigerField','Subjects','type','content','variableName','Variable','key','keyType','Fields','nameField','../../client'];(function(_0xb60ae4,_0x48b458){var _0x53d530=function(_0x5c0743){while(--_0x5c0743){_0xb60ae4['push'](_0xb60ae4['shift']());}};_0x53d530(++_0x48b458);}(_0xeca4,0x6b));var _0x4eca=function(_0x31a17f,_0x1d0859){_0x31a17f=_0x31a17f-0x0;var _0x2cb1f4=_0xeca4[_0x31a17f];return _0x2cb1f4;};'use strict';var client=require(_0x4eca('0x0'));exports[_0x4eca('0x1')]=function(){return function(_0x475b4f){return client[_0x4eca('0x2')](_0x4eca('0x3'),{'options':{'raw':![],'attributes':['id',_0x4eca('0x4'),'description',_0x4eca('0x5'),'accessKey','remoteUri',_0x4eca('0x6')],'include':[{'model':_0x4eca('0x7'),'as':'Configurations','attributes':['id',_0x4eca('0x4')],'include':[{'model':_0x4eca('0x8'),'as':_0x4eca('0x9'),'attributes':['id',_0x4eca('0xa'),_0x4eca('0xb'),_0x4eca('0xc')],'include':[{'model':_0x4eca('0xd'),'as':_0x4eca('0xd'),'attributes':['id',_0x4eca('0x4')]}]},{'model':_0x4eca('0x8'),'as':'Descriptions','attributes':['id','type','content',_0x4eca('0xe'),_0x4eca('0xf'),'keyContent','variableName'],'include':[{'model':_0x4eca('0xd'),'as':_0x4eca('0xd'),'attributes':['id',_0x4eca('0x4')]}]},{'model':_0x4eca('0x8'),'as':_0x4eca('0x10'),'attributes':['id',_0x4eca('0xa'),_0x4eca('0xb'),'idField',_0x4eca('0x11'),'customField',_0x4eca('0xc')],'include':[{'model':_0x4eca('0xd'),'as':_0x4eca('0xd'),'attributes':['id',_0x4eca('0x4')]}]}]}]},'log':_0x4eca('0x3')});};};