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 _0xb237=['int_zendesk_fields','zendesk_unique_index','idField','FieldId','util','bluebird','path','rimraf','./intZendeskField.attributes','exports','define','ZendeskField'];(function(_0x1f9a8f,_0x23151b){var _0x37af3f=function(_0x244254){while(--_0x244254){_0x1f9a8f['push'](_0x1f9a8f['shift']());}};_0x37af3f(++_0x23151b);}(_0xb237,0xc4));var _0x7b23=function(_0x10067b,_0x147b58){_0x10067b=_0x10067b-0x0;var _0x2a7f0c=_0xb237[_0x10067b];return _0x2a7f0c;};'use strict';var _=require('lodash');var util=require(_0x7b23('0x0'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0x7b23('0x1'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7b23('0x2'));var rimraf=require(_0x7b23('0x3'));var config=require('../../config/environment');var attributes=require(_0x7b23('0x4'));module[_0x7b23('0x5')]=function(_0xab6d0f,_0x11e5ce){return _0xab6d0f[_0x7b23('0x6')](_0x7b23('0x7'),attributes,{'tableName':_0x7b23('0x8'),'paranoid':![],'indexes':[{'name':_0x7b23('0x9'),'fields':[_0x7b23('0xa'),_0x7b23('0xb')],'unique':!![]}],'timestamps':!![]});};