Built motion from commit 0bd120ac.|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 _0xac29=['exports','define','whatsapp_accounts','lodash','util','../../config/logger','api','moment','path','rimraf','../../config/environment'];(function(_0x13e741,_0x5d3c24){var _0x3f8bb3=function(_0x4440a0){while(--_0x4440a0){_0x13e741['push'](_0x13e741['shift']());}};_0x3f8bb3(++_0x5d3c24);}(_0xac29,0x10b));var _0x9ac2=function(_0x5c238a,_0xb9277f){_0x5c238a=_0x5c238a-0x0;var _0x2c30bc=_0xac29[_0x5c238a];return _0x2c30bc;};'use strict';var _=require(_0x9ac2('0x0'));var util=require(_0x9ac2('0x1'));var logger=require(_0x9ac2('0x2'))(_0x9ac2('0x3'));var moment=require(_0x9ac2('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x9ac2('0x5'));var rimraf=require(_0x9ac2('0x6'));var config=require(_0x9ac2('0x7'));var attributes=require('./whatsappAccount.attributes');module[_0x9ac2('0x8')]=function(_0x5e6f85,_0x1462d9){return _0x5e6f85[_0x9ac2('0x9')]('WhatsappAccount',attributes,{'tableName':_0x9ac2('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};