Built motion from commit (unavailable).|2.5.0
[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 _0x3766=['../../config/environment','exports','define','WhatsappQueue','whatsapp_queues','lodash','moment','bluebird','rimraf'];(function(_0x15972b,_0xbd2412){var _0x487ae1=function(_0x210d24){while(--_0x210d24){_0x15972b['push'](_0x15972b['shift']());}};_0x487ae1(++_0xbd2412);}(_0x3766,0x10a));var _0x6376=function(_0x207202,_0x4d5a09){_0x207202=_0x207202-0x0;var _0x2c5866=_0x3766[_0x207202];return _0x2c5866;};'use strict';var _=require(_0x6376('0x0'));var util=require('util');var logger=require('../../config/logger')('api');var moment=require(_0x6376('0x1'));var BPromise=require(_0x6376('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x6376('0x3'));var config=require(_0x6376('0x4'));var attributes=require('./whatsappQueue.attributes');module[_0x6376('0x5')]=function(_0x7b7470,_0x4681cc){return _0x7b7470[_0x6376('0x6')](_0x6376('0x7'),attributes,{'tableName':_0x6376('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};