2f18ae1166d4db4f3714bb0c377e3eecdc0fd154
[motion2.git] / server / api / chatQueue / chatQueue.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 _0xf7c3=['../../config/logger','api','moment','path','rimraf','../../config/environment','./chatQueue.attributes','exports','define','ChatQueue','chat_queues','lodash'];(function(_0x32d6a1,_0x4298cd){var _0x55c53d=function(_0x21a9a7){while(--_0x21a9a7){_0x32d6a1['push'](_0x32d6a1['shift']());}};_0x55c53d(++_0x4298cd);}(_0xf7c3,0xb3));var _0x3f7c=function(_0x4d8e5c,_0x49f280){_0x4d8e5c=_0x4d8e5c-0x0;var _0x4f4e40=_0xf7c3[_0x4d8e5c];return _0x4f4e40;};'use strict';var _=require(_0x3f7c('0x0'));var util=require('util');var logger=require(_0x3f7c('0x1'))(_0x3f7c('0x2'));var moment=require(_0x3f7c('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x3f7c('0x4'));var rimraf=require(_0x3f7c('0x5'));var config=require(_0x3f7c('0x6'));var attributes=require(_0x3f7c('0x7'));module[_0x3f7c('0x8')]=function(_0x5a637a,_0x38a9f1){return _0x5a637a[_0x3f7c('0x9')](_0x3f7c('0xa'),attributes,{'tableName':_0x3f7c('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};