bc41d397018da6d0be505a40bc47444846e73868
[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 _0x7a54=['variableName','VtigerField','Descriptions','content','keyContent','Variable','Fields','idField','nameField','customField','../../client','getVtigerAccounts','GetVtigerAccount','name','username','accessKey','remoteUri','serverUrl','VtigerConfiguration','Subjects','type'];(function(_0x4823fd,_0x35ea05){var _0x221af7=function(_0x34e175){while(--_0x34e175){_0x4823fd['push'](_0x4823fd['shift']());}};_0x221af7(++_0x35ea05);}(_0x7a54,0x106));var _0x47a5=function(_0x538100,_0x1e8bf1){_0x538100=_0x538100-0x0;var _0x1ed062=_0x7a54[_0x538100];return _0x1ed062;};'use strict';var client=require(_0x47a5('0x0'));exports[_0x47a5('0x1')]=function(){return function(_0x44b31e){return client['Request'](_0x47a5('0x2'),{'options':{'raw':![],'attributes':['id',_0x47a5('0x3'),'description',_0x47a5('0x4'),_0x47a5('0x5'),_0x47a5('0x6'),_0x47a5('0x7')],'include':[{'model':_0x47a5('0x8'),'as':'Configurations','attributes':['id',_0x47a5('0x3')],'include':[{'model':'VtigerField','as':_0x47a5('0x9'),'attributes':['id',_0x47a5('0xa'),'content',_0x47a5('0xb')],'include':[{'model':'Variable','as':'Variable','attributes':['id','name']}]},{'model':_0x47a5('0xc'),'as':_0x47a5('0xd'),'attributes':['id','type',_0x47a5('0xe'),'key','keyType',_0x47a5('0xf'),_0x47a5('0xb')],'include':[{'model':_0x47a5('0x10'),'as':_0x47a5('0x10'),'attributes':['id',_0x47a5('0x3')]}]},{'model':_0x47a5('0xc'),'as':_0x47a5('0x11'),'attributes':['id','type',_0x47a5('0xe'),_0x47a5('0x12'),_0x47a5('0x13'),_0x47a5('0x14'),_0x47a5('0xb')],'include':[{'model':_0x47a5('0x10'),'as':_0x47a5('0x10'),'attributes':['id',_0x47a5('0x3')]}]}]}]},'log':'GetVtigerAccount'});};};