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 _0xc6d4=['path','rimraf','../../config/environment','./intDeskField.attributes','exports','DeskField','int_desk_fields','idField','FieldId','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x10ff05,_0x3f98d3){var _0x296b31=function(_0x28482d){while(--_0x28482d){_0x10ff05['push'](_0x10ff05['shift']());}};_0x296b31(++_0x3f98d3);}(_0xc6d4,0xea));var _0x4c6d=function(_0x1d1779,_0x284147){_0x1d1779=_0x1d1779-0x0;var _0x2377e9=_0xc6d4[_0x1d1779];return _0x2377e9;};'use strict';var _=require('lodash');var util=require(_0x4c6d('0x0'));var logger=require(_0x4c6d('0x1'))(_0x4c6d('0x2'));var moment=require(_0x4c6d('0x3'));var BPromise=require(_0x4c6d('0x4'));var rp=require(_0x4c6d('0x5'));var fs=require('fs');var path=require(_0x4c6d('0x6'));var rimraf=require(_0x4c6d('0x7'));var config=require(_0x4c6d('0x8'));var attributes=require(_0x4c6d('0x9'));module[_0x4c6d('0xa')]=function(_0x5521a7,_0x22f884){return _0x5521a7['define'](_0x4c6d('0xb'),attributes,{'tableName':_0x4c6d('0xc'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0x4c6d('0xd'),_0x4c6d('0xe')],'unique':!![]}],'timestamps':!![]});};