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 _0xf33b=['./userChatQueue.attributes','exports','define','UserChatQueue','user_has_chat_queues','lodash','../../config/logger','bluebird','path','../../config/environment'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0xf33b,0x1a9));var _0xbf33=function(_0xcd5a3d,_0x3c5b33){_0xcd5a3d=_0xcd5a3d-0x0;var _0xd43207=_0xf33b[_0xcd5a3d];return _0xd43207;};'use strict';var _=require(_0xbf33('0x0'));var util=require('util');var logger=require(_0xbf33('0x1'))('api');var moment=require('moment');var BPromise=require(_0xbf33('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xbf33('0x3'));var rimraf=require('rimraf');var config=require(_0xbf33('0x4'));var attributes=require(_0xbf33('0x5'));module[_0xbf33('0x6')]=function(_0x43ed2b,_0x5d1303){return _0x43ed2b[_0xbf33('0x7')](_0xbf33('0x8'),attributes,{'tableName':_0xbf33('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};