ece2a721969f7819b44b2103fe8cfd7b58c140bc
[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 _0x03dc=['../../config/logger','api','bluebird','request-promise','path','rimraf','./whatsappQueue.attributes','exports','define','WhatsappQueue','whatsapp_queues','lodash','util'];(function(_0x5744ec,_0x4c760a){var _0x2a6b2d=function(_0x4da8f9){while(--_0x4da8f9){_0x5744ec['push'](_0x5744ec['shift']());}};_0x2a6b2d(++_0x4c760a);}(_0x03dc,0x16a));var _0xc03d=function(_0x1e59d4,_0x461eb3){_0x1e59d4=_0x1e59d4-0x0;var _0x552390=_0x03dc[_0x1e59d4];return _0x552390;};'use strict';var _=require(_0xc03d('0x0'));var util=require(_0xc03d('0x1'));var logger=require(_0xc03d('0x2'))(_0xc03d('0x3'));var moment=require('moment');var BPromise=require(_0xc03d('0x4'));var rp=require(_0xc03d('0x5'));var fs=require('fs');var path=require(_0xc03d('0x6'));var rimraf=require(_0xc03d('0x7'));var config=require('../../config/environment');var attributes=require(_0xc03d('0x8'));module[_0xc03d('0x9')]=function(_0x59f88f,_0x3aa2d2){return _0x59f88f[_0xc03d('0xa')](_0xc03d('0xb'),attributes,{'tableName':_0xc03d('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};