cb9898f930f96b8c6b75b79f90335333ee114024
[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 _0xda87=['rimraf','../../config/environment','./chatQueue.attributes','exports','define','ChatQueue','chat_queues','util','../../config/logger','api','moment','request-promise'];(function(_0x2ee55f,_0xde849b){var _0x2e5927=function(_0x270f52){while(--_0x270f52){_0x2ee55f['push'](_0x2ee55f['shift']());}};_0x2e5927(++_0xde849b);}(_0xda87,0xeb));var _0x7da8=function(_0x469393,_0x247969){_0x469393=_0x469393-0x0;var _0x5f720d=_0xda87[_0x469393];return _0x5f720d;};'use strict';var _=require('lodash');var util=require(_0x7da8('0x0'));var logger=require(_0x7da8('0x1'))(_0x7da8('0x2'));var moment=require(_0x7da8('0x3'));var BPromise=require('bluebird');var rp=require(_0x7da8('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7da8('0x5'));var config=require(_0x7da8('0x6'));var attributes=require(_0x7da8('0x7'));module[_0x7da8('0x8')]=function(_0x12de35,_0x17d669){return _0x12de35[_0x7da8('0x9')](_0x7da8('0xa'),attributes,{'tableName':_0x7da8('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};