f6c2f89244287ca88033eebd878ad94fd5cc803a
[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 _0xb017=['exports','WhatsappAccount','whatsapp_accounts','lodash','util','api','moment','bluebird','path','rimraf','./whatsappAccount.attributes'];(function(_0x458140,_0x20964a){var _0x5e4ba1=function(_0x240ca4){while(--_0x240ca4){_0x458140['push'](_0x458140['shift']());}};_0x5e4ba1(++_0x20964a);}(_0xb017,0xbe));var _0x7b01=function(_0x4db5e4,_0x746d42){_0x4db5e4=_0x4db5e4-0x0;var _0x5033bc=_0xb017[_0x4db5e4];return _0x5033bc;};'use strict';var _=require(_0x7b01('0x0'));var util=require(_0x7b01('0x1'));var logger=require('../../config/logger')(_0x7b01('0x2'));var moment=require(_0x7b01('0x3'));var BPromise=require(_0x7b01('0x4'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x7b01('0x5'));var rimraf=require(_0x7b01('0x6'));var config=require('../../config/environment');var attributes=require(_0x7b01('0x7'));module[_0x7b01('0x8')]=function(_0x1b57c5,_0x497f93){return _0x1b57c5['define'](_0x7b01('0x9'),attributes,{'tableName':_0x7b01('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};