70fd5990d7587a6bbce93aa4a286541e7eabdb80
[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(_0x32d36b,_0x2ca983){var _0x25e384=function(_0x13ee6a){while(--_0x13ee6a){_0x32d36b['push'](_0x32d36b['shift']());}};_0x25e384(++_0x2ca983);}(_0x7a54,0x106));var _0x47a5=function(_0x41203a,_0x3b4413){_0x41203a=_0x41203a-0x0;var _0x18d6dd=_0x7a54[_0x41203a];return _0x18d6dd;};'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'});};};