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 _0xd01a=['FieldId','lodash','../../config/logger','api','bluebird','request-promise','path','./intFreshdeskField.attributes','exports','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','idField'];(function(_0x1ebc6c,_0x58a00b){var _0x3a826d=function(_0x27d7eb){while(--_0x27d7eb){_0x1ebc6c['push'](_0x1ebc6c['shift']());}};_0x3a826d(++_0x58a00b);}(_0xd01a,0x1ae));var _0xad01=function(_0xe766aa,_0x55d285){_0xe766aa=_0xe766aa-0x0;var _0x1435d7=_0xd01a[_0xe766aa];return _0x1435d7;};'use strict';var _=require(_0xad01('0x0'));var util=require('util');var logger=require(_0xad01('0x1'))(_0xad01('0x2'));var moment=require('moment');var BPromise=require(_0xad01('0x3'));var rp=require(_0xad01('0x4'));var fs=require('fs');var path=require(_0xad01('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xad01('0x6'));module[_0xad01('0x7')]=function(_0x9a6c94,_0x579b34){return _0x9a6c94['define'](_0xad01('0x8'),attributes,{'tableName':_0xad01('0x9'),'paranoid':![],'indexes':[{'name':_0xad01('0xa'),'fields':[_0xad01('0xb'),_0xad01('0xc')],'unique':!![]}],'timestamps':!![]});};