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 _0xba9e=['rimraf','./intDeskField.attributes','define','DeskField','int_desk_fields','idField','FieldId','lodash','util','../../config/logger','api','bluebird','request-promise'];(function(_0x47dcf6,_0x2bd422){var _0x2dfdc5=function(_0x5d0eb8){while(--_0x5d0eb8){_0x47dcf6['push'](_0x47dcf6['shift']());}};_0x2dfdc5(++_0x2bd422);}(_0xba9e,0xa3));var _0xeba9=function(_0x516a5d,_0x2a0609){_0x516a5d=_0x516a5d-0x0;var _0x541796=_0xba9e[_0x516a5d];return _0x541796;};'use strict';var _=require(_0xeba9('0x0'));var util=require(_0xeba9('0x1'));var logger=require(_0xeba9('0x2'))(_0xeba9('0x3'));var moment=require('moment');var BPromise=require(_0xeba9('0x4'));var rp=require(_0xeba9('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0xeba9('0x6'));var config=require('../../config/environment');var attributes=require(_0xeba9('0x7'));module['exports']=function(_0x38477c,_0x59d00e){return _0x38477c[_0xeba9('0x8')](_0xeba9('0x9'),attributes,{'tableName':_0xeba9('0xa'),'paranoid':![],'indexes':[{'name':'desk_unique_index','fields':[_0xeba9('0xb'),_0xeba9('0xc')],'unique':!![]}],'timestamps':!![]});};