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 _0x57ea=['util','request-promise','path','rimraf','../../config/environment','exports','define','ZendeskField','zendesk_unique_index','idField','FieldId'];(function(_0x2d3975,_0x2a6856){var _0x3e86e8=function(_0x956e0e){while(--_0x956e0e){_0x2d3975['push'](_0x2d3975['shift']());}};_0x3e86e8(++_0x2a6856);}(_0x57ea,0x181));var _0xa57e=function(_0x1a6bc2,_0x126f66){_0x1a6bc2=_0x1a6bc2-0x0;var _0x147952=_0x57ea[_0x1a6bc2];return _0x147952;};'use strict';var _=require('lodash');var util=require(_0xa57e('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xa57e('0x1'));var fs=require('fs');var path=require(_0xa57e('0x2'));var rimraf=require(_0xa57e('0x3'));var config=require(_0xa57e('0x4'));var attributes=require('./intZendeskField.attributes');module[_0xa57e('0x5')]=function(_0x5c9995,_0x5bb3f8){return _0x5c9995[_0xa57e('0x6')](_0xa57e('0x7'),attributes,{'tableName':'int_zendesk_fields','paranoid':![],'indexes':[{'name':_0xa57e('0x8'),'fields':[_0xa57e('0x9'),_0xa57e('0xa')],'unique':!![]}],'timestamps':!![]});};