72bd933ff5b6ab9f15d1a505be268669c1503b26
[motion2.git] / server / api / userChatQueue / userChatQueue.model.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xefb0=['exports','define','UserChatQueue','user_has_chat_queues','lodash','../../config/logger','api','request-promise','path','./userChatQueue.attributes'];(function(_0x5b644e,_0x2e5e07){var _0x49c6bf=function(_0x3032d9){while(--_0x3032d9){_0x5b644e['push'](_0x5b644e['shift']());}};_0x49c6bf(++_0x2e5e07);}(_0xefb0,0x1ee));var _0x0efb=function(_0x52e693,_0x287437){_0x52e693=_0x52e693-0x0;var _0x542799=_0xefb0[_0x52e693];return _0x542799;};'use strict';var _=require(_0x0efb('0x0'));var util=require('util');var logger=require(_0x0efb('0x1'))(_0x0efb('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x0efb('0x3'));var fs=require('fs');var path=require(_0x0efb('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x0efb('0x5'));module[_0x0efb('0x6')]=function(_0x53ed5c,_0x398240){return _0x53ed5c[_0x0efb('0x7')](_0x0efb('0x8'),attributes,{'tableName':_0x0efb('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};