Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / whatsappQueue / whatsappQueue.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 _0x58c6=['../../config/environment','./whatsappQueue.attributes','lodash','util','api','moment','bluebird','path'];(function(_0x5805d7,_0x3d584a){var _0x170fe4=function(_0x3b9b73){while(--_0x3b9b73){_0x5805d7['push'](_0x5805d7['shift']());}};_0x170fe4(++_0x3d584a);}(_0x58c6,0x122));var _0x658c=function(_0x95411e,_0x38b4c3){_0x95411e=_0x95411e-0x0;var _0x2c8718=_0x58c6[_0x95411e];return _0x2c8718;};'use strict';var _=require(_0x658c('0x0'));var util=require(_0x658c('0x1'));var logger=require('../../config/logger')(_0x658c('0x2'));var moment=require(_0x658c('0x3'));var BPromise=require(_0x658c('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x658c('0x5'));var rimraf=require('rimraf');var config=require(_0x658c('0x6'));var attributes=require(_0x658c('0x7'));module['exports']=function(_0xe3f20a,_0x270c0e){return _0xe3f20a['define']('WhatsappQueue',attributes,{'tableName':'whatsapp_queues','paranoid':![],'indexes':[],'timestamps':!![]});};