ac006db1e685576a95a23a3357f60e919b242ca8
[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 _0x6329=['rimraf','./chatQueue.attributes','exports','ChatQueue','chat_queues','util','../../config/logger','api','moment','bluebird','path'];(function(_0x36e4de,_0x36e0d6){var _0x3642cf=function(_0x2c4a91){while(--_0x2c4a91){_0x36e4de['push'](_0x36e4de['shift']());}};_0x3642cf(++_0x36e0d6);}(_0x6329,0xc0));var _0x9632=function(_0x397e5f,_0x454c8f){_0x397e5f=_0x397e5f-0x0;var _0x5302b8=_0x6329[_0x397e5f];return _0x5302b8;};'use strict';var _=require('lodash');var util=require(_0x9632('0x0'));var logger=require(_0x9632('0x1'))(_0x9632('0x2'));var moment=require(_0x9632('0x3'));var BPromise=require(_0x9632('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x9632('0x5'));var rimraf=require(_0x9632('0x6'));var config=require('../../config/environment');var attributes=require(_0x9632('0x7'));module[_0x9632('0x8')]=function(_0x4d3478,_0x3a9860){return _0x4d3478['define'](_0x9632('0x9'),attributes,{'tableName':_0x9632('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};