Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / whatsappAccount / whatsappAccount.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 _0x4260=['../../config/logger','bluebird','request-promise','path','rimraf','./whatsappAccount.attributes','exports','define','lodash','util'];(function(_0x5b561d,_0x422b7c){var _0x431060=function(_0x401409){while(--_0x401409){_0x5b561d['push'](_0x5b561d['shift']());}};_0x431060(++_0x422b7c);}(_0x4260,0xa8));var _0x0426=function(_0xd73a6d,_0x1da0ab){_0xd73a6d=_0xd73a6d-0x0;var _0x1c0143=_0x4260[_0xd73a6d];return _0x1c0143;};'use strict';var _=require(_0x0426('0x0'));var util=require(_0x0426('0x1'));var logger=require(_0x0426('0x2'))('api');var moment=require('moment');var BPromise=require(_0x0426('0x3'));var rp=require(_0x0426('0x4'));var fs=require('fs');var path=require(_0x0426('0x5'));var rimraf=require(_0x0426('0x6'));var config=require('../../config/environment');var attributes=require(_0x0426('0x7'));module[_0x0426('0x8')]=function(_0xae5b5d,_0xd42a67){return _0xae5b5d[_0x0426('0x9')]('WhatsappAccount',attributes,{'tableName':'whatsapp_accounts','paranoid':![],'indexes':[],'timestamps':!![]});};