d4834cffe7c3f1ebff0f6f76faabc998f777969c
[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 _0xf8de=['path','../../config/environment','./chatQueue.attributes','exports','define','chat_queues','util','moment','bluebird'];(function(_0x105b3a,_0x3f146c){var _0x561a8f=function(_0x566e07){while(--_0x566e07){_0x105b3a['push'](_0x105b3a['shift']());}};_0x561a8f(++_0x3f146c);}(_0xf8de,0x141));var _0xef8d=function(_0x3aab5f,_0x29179e){_0x3aab5f=_0x3aab5f-0x0;var _0x3fcf7b=_0xf8de[_0x3aab5f];return _0x3fcf7b;};'use strict';var _=require('lodash');var util=require(_0xef8d('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0xef8d('0x1'));var BPromise=require(_0xef8d('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xef8d('0x3'));var rimraf=require('rimraf');var config=require(_0xef8d('0x4'));var attributes=require(_0xef8d('0x5'));module[_0xef8d('0x6')]=function(_0x3548a2,_0x2c0844){return _0x3548a2[_0xef8d('0x7')]('ChatQueue',attributes,{'tableName':_0xef8d('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};