1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x069f=['idField','FieldId','lodash','../../config/logger','moment','bluebird','path','rimraf','exports','ZohoField','zoho_unique_index'];(function(_0x2797c6,_0x37421b){var _0x54809f=function(_0x2d100c){while(--_0x2d100c){_0x2797c6['push'](_0x2797c6['shift']());}};_0x54809f(++_0x37421b);}(_0x069f,0xd3));var _0xf069=function(_0x3e9402,_0x130b9e){_0x3e9402=_0x3e9402-0x0;var _0x1f5996=_0x069f[_0x3e9402];return _0x1f5996;};'use strict';var _=require(_0xf069('0x0'));var util=require('util');var logger=require(_0xf069('0x1'))('api');var moment=require(_0xf069('0x2'));var BPromise=require(_0xf069('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xf069('0x4'));var rimraf=require(_0xf069('0x5'));var config=require('../../config/environment');var attributes=require('./intZohoField.attributes');module[_0xf069('0x6')]=function(_0x1f1357,_0x4006fe){return _0x1f1357['define'](_0xf069('0x7'),attributes,{'tableName':'int_zoho_fields','paranoid':![],'indexes':[{'name':_0xf069('0x8'),'fields':[_0xf069('0x9'),_0xf069('0xa')],'unique':!![]}],'timestamps':!![]});};