c3cddedeec3ef97256c46d2fa7215c16eb4ef939
[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 _0xe566=['util','../../config/logger','moment','request-promise','path','../../config/environment','./userWhatsappQueue.attributes','exports','UserWhatsappQueue','user_has_whatsapp_queues','lodash'];(function(_0x959162,_0x2b57d3){var _0x2923f6=function(_0xbacddf){while(--_0xbacddf){_0x959162['push'](_0x959162['shift']());}};_0x2923f6(++_0x2b57d3);}(_0xe566,0xe6));var _0x6e56=function(_0x4f232a,_0x529d8){_0x4f232a=_0x4f232a-0x0;var _0x4fda49=_0xe566[_0x4f232a];return _0x4fda49;};'use strict';var _=require(_0x6e56('0x0'));var util=require(_0x6e56('0x1'));var logger=require(_0x6e56('0x2'))('api');var moment=require(_0x6e56('0x3'));var BPromise=require('bluebird');var rp=require(_0x6e56('0x4'));var fs=require('fs');var path=require(_0x6e56('0x5'));var rimraf=require('rimraf');var config=require(_0x6e56('0x6'));var attributes=require(_0x6e56('0x7'));module[_0x6e56('0x8')]=function(_0x3735d5,_0x5db538){return _0x3735d5['define'](_0x6e56('0x9'),attributes,{'tableName':_0x6e56('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};