Built motion from commit d1eab355.|2.6.28
[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 _0xb80d=['define','WhatsappQueue','whatsapp_queues','lodash','util','../../config/logger','api','request-promise','path','rimraf','../../config/environment','./whatsappQueue.attributes','exports'];(function(_0x590b61,_0x4c4335){var _0x1a14dc=function(_0x2ff4f6){while(--_0x2ff4f6){_0x590b61['push'](_0x590b61['shift']());}};_0x1a14dc(++_0x4c4335);}(_0xb80d,0xd3));var _0xdb80=function(_0xbb36a0,_0x1cb1e4){_0xbb36a0=_0xbb36a0-0x0;var _0x306db2=_0xb80d[_0xbb36a0];return _0x306db2;};'use strict';var _=require(_0xdb80('0x0'));var util=require(_0xdb80('0x1'));var logger=require(_0xdb80('0x2'))(_0xdb80('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xdb80('0x4'));var fs=require('fs');var path=require(_0xdb80('0x5'));var rimraf=require(_0xdb80('0x6'));var config=require(_0xdb80('0x7'));var attributes=require(_0xdb80('0x8'));module[_0xdb80('0x9')]=function(_0x5c0bf8,_0x3db90c){return _0x5c0bf8[_0xdb80('0xa')](_0xdb80('0xb'),attributes,{'tableName':_0xdb80('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};