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 _0x8abd=['ZendeskField','int_zendesk_fields','zendesk_unique_index','FieldId','lodash','moment','request-promise','path','rimraf','exports','define'];(function(_0x81a26e,_0x4a6f01){var _0x343910=function(_0xb4c242){while(--_0xb4c242){_0x81a26e['push'](_0x81a26e['shift']());}};_0x343910(++_0x4a6f01);}(_0x8abd,0xd5));var _0xd8ab=function(_0x3296dc,_0x3fb8bd){_0x3296dc=_0x3296dc-0x0;var _0xde8289=_0x8abd[_0x3296dc];return _0xde8289;};'use strict';var _=require(_0xd8ab('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0xd8ab('0x1'));var BPromise=require('bluebird');var rp=require(_0xd8ab('0x2'));var fs=require('fs');var path=require(_0xd8ab('0x3'));var rimraf=require(_0xd8ab('0x4'));var config=require('../../config/environment');var attributes=require('./intZendeskField.attributes');module[_0xd8ab('0x5')]=function(_0x4a7ab6,_0x16163d){return _0x4a7ab6[_0xd8ab('0x6')](_0xd8ab('0x7'),attributes,{'tableName':_0xd8ab('0x8'),'paranoid':![],'indexes':[{'name':_0xd8ab('0x9'),'fields':['idField',_0xd8ab('0xa')],'unique':!![]}],'timestamps':!![]});};