fc8d7c57afaa7af9e955261fe7df1a127d9cb2df
[motion2.git] / server / api / userWhatsappQueue / userWhatsappQueue.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 _0x2cbb=['bluebird','path','./userWhatsappQueue.attributes','define','UserWhatsappQueue','user_has_whatsapp_queues','util','../../config/logger','api','moment'];(function(_0x2d460c,_0x4f08c0){var _0xf6fc4c=function(_0x4fb81c){while(--_0x4fb81c){_0x2d460c['push'](_0x2d460c['shift']());}};_0xf6fc4c(++_0x4f08c0);}(_0x2cbb,0x13c));var _0xb2cb=function(_0x1df9f4,_0x27c693){_0x1df9f4=_0x1df9f4-0x0;var _0x29f9c5=_0x2cbb[_0x1df9f4];return _0x29f9c5;};'use strict';var _=require('lodash');var util=require(_0xb2cb('0x0'));var logger=require(_0xb2cb('0x1'))(_0xb2cb('0x2'));var moment=require(_0xb2cb('0x3'));var BPromise=require(_0xb2cb('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xb2cb('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xb2cb('0x6'));module['exports']=function(_0x12f00e,_0x3b15c0){return _0x12f00e[_0xb2cb('0x7')](_0xb2cb('0x8'),attributes,{'tableName':_0xb2cb('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};