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 _0x5cfe=['desk_unique_index','idField','util','../../config/logger','moment','bluebird','path','rimraf','../../config/environment','./intDeskField.attributes','exports','DeskField','int_desk_fields'];(function(_0x251bc2,_0x35bd21){var _0xef3802=function(_0x230a1a){while(--_0x230a1a){_0x251bc2['push'](_0x251bc2['shift']());}};_0xef3802(++_0x35bd21);}(_0x5cfe,0x12d));var _0xe5cf=function(_0x1101e3,_0x1492e9){_0x1101e3=_0x1101e3-0x0;var _0x1aa5c6=_0x5cfe[_0x1101e3];return _0x1aa5c6;};'use strict';var _=require('lodash');var util=require(_0xe5cf('0x0'));var logger=require(_0xe5cf('0x1'))('api');var moment=require(_0xe5cf('0x2'));var BPromise=require(_0xe5cf('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe5cf('0x4'));var rimraf=require(_0xe5cf('0x5'));var config=require(_0xe5cf('0x6'));var attributes=require(_0xe5cf('0x7'));module[_0xe5cf('0x8')]=function(_0x53d911,_0x212d99){return _0x53d911['define'](_0xe5cf('0x9'),attributes,{'tableName':_0xe5cf('0xa'),'paranoid':![],'indexes':[{'name':_0xe5cf('0xb'),'fields':[_0xe5cf('0xc'),'FieldId'],'unique':!![]}],'timestamps':!![]});};