0b55dee622dfe6bb6df0a74080ec9e42269f6c49
[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 _0x19e9=['path','rimraf','../../config/environment','./chatQueue.attributes','exports','define','ChatQueue','chat_queues','lodash','util','../../config/logger','request-promise'];(function(_0x1fcaf1,_0x21c3c2){var _0x55f464=function(_0x348eb3){while(--_0x348eb3){_0x1fcaf1['push'](_0x1fcaf1['shift']());}};_0x55f464(++_0x21c3c2);}(_0x19e9,0x68));var _0x919e=function(_0x5d02c1,_0x429981){_0x5d02c1=_0x5d02c1-0x0;var _0x23d71a=_0x19e9[_0x5d02c1];return _0x23d71a;};'use strict';var _=require(_0x919e('0x0'));var util=require(_0x919e('0x1'));var logger=require(_0x919e('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x919e('0x3'));var fs=require('fs');var path=require(_0x919e('0x4'));var rimraf=require(_0x919e('0x5'));var config=require(_0x919e('0x6'));var attributes=require(_0x919e('0x7'));module[_0x919e('0x8')]=function(_0x2ca965,_0x4cdac){return _0x2ca965[_0x919e('0x9')](_0x919e('0xa'),attributes,{'tableName':_0x919e('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};