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 _0x9fa4=['util','../../config/logger','moment','request-promise','./intFreshdeskField.attributes','exports','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField','FieldId','lodash'];(function(_0x2641f9,_0x26715f){var _0x585741=function(_0x2d1462){while(--_0x2d1462){_0x2641f9['push'](_0x2641f9['shift']());}};_0x585741(++_0x26715f);}(_0x9fa4,0xe9));var _0x49fa=function(_0x63135f,_0x4066f1){_0x63135f=_0x63135f-0x0;var _0xf9b578=_0x9fa4[_0x63135f];return _0xf9b578;};'use strict';var _=require(_0x49fa('0x0'));var util=require(_0x49fa('0x1'));var logger=require(_0x49fa('0x2'))('api');var moment=require(_0x49fa('0x3'));var BPromise=require('bluebird');var rp=require(_0x49fa('0x4'));var attributes=require(_0x49fa('0x5'));module[_0x49fa('0x6')]=function(_0x4401f2,_0x1496ca){return _0x4401f2[_0x49fa('0x7')](_0x49fa('0x8'),attributes,{'tableName':_0x49fa('0x9'),'paranoid':![],'indexes':[{'name':_0x49fa('0xa'),'fields':[_0x49fa('0xb'),_0x49fa('0xc')],'unique':!![]}],'timestamps':!![]});};