50851d5e7eb8d06e168c85730a0556479ac87793
[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 _0x343e=['Fields','idField','nameField','customField','getVtigerAccounts','Request','GetVtigerAccount','name','description','username','accessKey','serverUrl','VtigerConfiguration','Configurations','type','content','variableName','Variable','Descriptions','key','keyType','keyContent'];(function(_0x228337,_0x596632){var _0x2289b8=function(_0x32b6e2){while(--_0x32b6e2){_0x228337['push'](_0x228337['shift']());}};_0x2289b8(++_0x596632);}(_0x343e,0x9e));var _0xe343=function(_0x1bf522,_0x20e1f7){_0x1bf522=_0x1bf522-0x0;var _0x289813=_0x343e[_0x1bf522];return _0x289813;};'use strict';var client=require('../../client');exports[_0xe343('0x0')]=function(){return function(_0x1d905a){return client[_0xe343('0x1')](_0xe343('0x2'),{'options':{'raw':![],'attributes':['id',_0xe343('0x3'),_0xe343('0x4'),_0xe343('0x5'),_0xe343('0x6'),'remoteUri',_0xe343('0x7')],'include':[{'model':_0xe343('0x8'),'as':_0xe343('0x9'),'attributes':['id','name'],'include':[{'model':'VtigerField','as':'Subjects','attributes':['id',_0xe343('0xa'),_0xe343('0xb'),_0xe343('0xc')],'include':[{'model':_0xe343('0xd'),'as':_0xe343('0xd'),'attributes':['id','name']}]},{'model':'VtigerField','as':_0xe343('0xe'),'attributes':['id',_0xe343('0xa'),'content',_0xe343('0xf'),_0xe343('0x10'),_0xe343('0x11'),_0xe343('0xc')],'include':[{'model':_0xe343('0xd'),'as':_0xe343('0xd'),'attributes':['id',_0xe343('0x3')]}]},{'model':'VtigerField','as':_0xe343('0x12'),'attributes':['id',_0xe343('0xa'),'content',_0xe343('0x13'),_0xe343('0x14'),_0xe343('0x15'),_0xe343('0xc')],'include':[{'model':_0xe343('0xd'),'as':_0xe343('0xd'),'attributes':['id',_0xe343('0x3')]}]}]}]},'log':_0xe343('0x2')});};};