Built motion from commit 616d3211.|2.6.4
[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 _0x1edd=['exports','UserChatQueue','user_has_chat_queues','util','moment','bluebird','path','rimraf','../../config/environment','./userChatQueue.attributes'];(function(_0xb24a3e,_0x4a3594){var _0x4038d7=function(_0x1ea3c3){while(--_0x1ea3c3){_0xb24a3e['push'](_0xb24a3e['shift']());}};_0x4038d7(++_0x4a3594);}(_0x1edd,0x71));var _0xd1ed=function(_0x164760,_0x5874b0){_0x164760=_0x164760-0x0;var _0x8b91b2=_0x1edd[_0x164760];return _0x8b91b2;};'use strict';var _=require('lodash');var util=require(_0xd1ed('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xd1ed('0x1'));var BPromise=require(_0xd1ed('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xd1ed('0x3'));var rimraf=require(_0xd1ed('0x4'));var config=require(_0xd1ed('0x5'));var attributes=require(_0xd1ed('0x6'));module[_0xd1ed('0x7')]=function(_0x184001,_0x437a03){return _0x184001['define'](_0xd1ed('0x8'),attributes,{'tableName':_0xd1ed('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};