Built motion from commit 0900f080.|2.5.45
[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 _0xe1ba=['user_has_whatsapp_queues','../../config/logger','api','moment','bluebird','path','./userWhatsappQueue.attributes','exports','define','UserWhatsappQueue'];(function(_0x302375,_0x27a237){var _0x18b9e3=function(_0x484c64){while(--_0x484c64){_0x302375['push'](_0x302375['shift']());}};_0x18b9e3(++_0x27a237);}(_0xe1ba,0xe7));var _0xae1b=function(_0x2b3e7e,_0x37c887){_0x2b3e7e=_0x2b3e7e-0x0;var _0x1e24b2=_0xe1ba[_0x2b3e7e];return _0x1e24b2;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0xae1b('0x0'))(_0xae1b('0x1'));var moment=require(_0xae1b('0x2'));var BPromise=require(_0xae1b('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xae1b('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0xae1b('0x5'));module[_0xae1b('0x6')]=function(_0x46e2d5,_0x210edd){return _0x46e2d5[_0xae1b('0x7')](_0xae1b('0x8'),attributes,{'tableName':_0xae1b('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};