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 _0xd0b5=['exports','define','FreshdeskField','int_freshdesk_fields','freshdesk_unique_index','FieldId','../../config/logger','api','bluebird','request-promise','path','rimraf','../../config/environment','./intFreshdeskField.attributes'];(function(_0x483c8a,_0x56dfed){var _0x305cb2=function(_0x350147){while(--_0x350147){_0x483c8a['push'](_0x483c8a['shift']());}};_0x305cb2(++_0x56dfed);}(_0xd0b5,0x1b8));var _0x5d0b=function(_0x14835f,_0x2fb8ce){_0x14835f=_0x14835f-0x0;var _0x1958ce=_0xd0b5[_0x14835f];return _0x1958ce;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x5d0b('0x0'))(_0x5d0b('0x1'));var moment=require('moment');var BPromise=require(_0x5d0b('0x2'));var rp=require(_0x5d0b('0x3'));var fs=require('fs');var path=require(_0x5d0b('0x4'));var rimraf=require(_0x5d0b('0x5'));var config=require(_0x5d0b('0x6'));var attributes=require(_0x5d0b('0x7'));module[_0x5d0b('0x8')]=function(_0x41b7c1,_0xd514d0){return _0x41b7c1[_0x5d0b('0x9')](_0x5d0b('0xa'),attributes,{'tableName':_0x5d0b('0xb'),'paranoid':![],'indexes':[{'name':_0x5d0b('0xc'),'fields':['idField',_0x5d0b('0xd')],'unique':!![]}],'timestamps':!![]});};