095b04ab43ead7d6742242a40d76d6905b0ca80c
[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 _0xca20=['define','ChatQueue','lodash','api','bluebird','rimraf','exports'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xca20,0x1ec));var _0x0ca2=function(_0x4a747d,_0x3b747f){_0x4a747d=_0x4a747d-0x0;var _0x3a5b5c=_0xca20[_0x4a747d];return _0x3a5b5c;};'use strict';var _=require(_0x0ca2('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x0ca2('0x1'));var moment=require('moment');var BPromise=require(_0x0ca2('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x0ca2('0x3'));var config=require('../../config/environment');var attributes=require('./chatQueue.attributes');module[_0x0ca2('0x4')]=function(_0x3a3b6b,_0x5cd685){return _0x3a3b6b[_0x0ca2('0x5')](_0x0ca2('0x6'),attributes,{'tableName':'chat_queues','paranoid':![],'indexes':[],'timestamps':!![]});};