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 _0xa038=['rimraf','../../config/environment','./intDeskField.attributes','DeskField','int_desk_fields','desk_unique_index','idField','FieldId','lodash','util','../../config/logger','bluebird'];(function(_0x28fbbf,_0x11f896){var _0x543af6=function(_0x27fa74){while(--_0x27fa74){_0x28fbbf['push'](_0x28fbbf['shift']());}};_0x543af6(++_0x11f896);}(_0xa038,0x11c));var _0x8a03=function(_0x368fb9,_0x1a9895){_0x368fb9=_0x368fb9-0x0;var _0x4892fb=_0xa038[_0x368fb9];return _0x4892fb;};'use strict';var _=require(_0x8a03('0x0'));var util=require(_0x8a03('0x1'));var logger=require(_0x8a03('0x2'))('api');var moment=require('moment');var BPromise=require(_0x8a03('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x8a03('0x4'));var config=require(_0x8a03('0x5'));var attributes=require(_0x8a03('0x6'));module['exports']=function(_0x53dbea,_0x34a0b7){return _0x53dbea['define'](_0x8a03('0x7'),attributes,{'tableName':_0x8a03('0x8'),'paranoid':![],'indexes':[{'name':_0x8a03('0x9'),'fields':[_0x8a03('0xa'),_0x8a03('0xb')],'unique':!![]}],'timestamps':!![]});};