26ee671301598c940be9239b84984ef75257e15a
[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 _0x99c4=['./userWhatsappQueue.attributes','define','UserWhatsappQueue','user_has_whatsapp_queues','../../config/logger','bluebird','request-promise','path'];(function(_0x57c3bf,_0x2162b7){var _0x444d02=function(_0x581a4a){while(--_0x581a4a){_0x57c3bf['push'](_0x57c3bf['shift']());}};_0x444d02(++_0x2162b7);}(_0x99c4,0xf4));var _0x499c=function(_0x1928f4,_0x2e60f5){_0x1928f4=_0x1928f4-0x0;var _0x422637=_0x99c4[_0x1928f4];return _0x422637;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x499c('0x0'))('api');var moment=require('moment');var BPromise=require(_0x499c('0x1'));var rp=require(_0x499c('0x2'));var fs=require('fs');var path=require(_0x499c('0x3'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x499c('0x4'));module['exports']=function(_0x2d172d,_0x24bf07){return _0x2d172d[_0x499c('0x5')](_0x499c('0x6'),attributes,{'tableName':_0x499c('0x7'),'paranoid':![],'indexes':[],'timestamps':!![]});};