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 _0xac4f=['DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util','api','moment','bluebird','request-promise','path','rimraf','exports','define'];(function(_0x1dcf37,_0x150062){var _0x4323ea=function(_0x1743e3){while(--_0x1743e3){_0x1dcf37['push'](_0x1dcf37['shift']());}};_0x4323ea(++_0x150062);}(_0xac4f,0x15e));var _0xfac4=function(_0x221b8c,_0x2c7afc){_0x221b8c=_0x221b8c-0x0;var _0x3fab9f=_0xac4f[_0x221b8c];return _0x3fab9f;};'use strict';var _=require(_0xfac4('0x0'));var util=require(_0xfac4('0x1'));var logger=require('../../config/logger')(_0xfac4('0x2'));var moment=require(_0xfac4('0x3'));var BPromise=require(_0xfac4('0x4'));var rp=require(_0xfac4('0x5'));var fs=require('fs');var path=require(_0xfac4('0x6'));var rimraf=require(_0xfac4('0x7'));var config=require('../../config/environment');var attributes=require('./intDeskField.attributes');module[_0xfac4('0x8')]=function(_0x21be50,_0x3ba1fa){return _0x21be50[_0xfac4('0x9')](_0xfac4('0xa'),attributes,{'tableName':_0xfac4('0xb'),'paranoid':![],'indexes':[{'name':_0xfac4('0xc'),'fields':[_0xfac4('0xd'),_0xfac4('0xe')],'unique':!![]}],'timestamps':!![]});};