Built motion from commit 753c950e.|2.5.42
[motion2.git] / server / api / squareMessage / squareMessage.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 _0xc407=['rimraf','../../config/environment','exports','define','SquareMessage','square_messages','lodash','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x141da6,_0x27d92d){var _0x12cb67=function(_0x58d070){while(--_0x58d070){_0x141da6['push'](_0x141da6['shift']());}};_0x12cb67(++_0x27d92d);}(_0xc407,0x1e6));var _0x7c40=function(_0x46428c,_0x20ab75){_0x46428c=_0x46428c-0x0;var _0x16a677=_0xc407[_0x46428c];return _0x16a677;};'use strict';var _=require(_0x7c40('0x0'));var util=require('util');var logger=require(_0x7c40('0x1'))(_0x7c40('0x2'));var moment=require(_0x7c40('0x3'));var BPromise=require(_0x7c40('0x4'));var rp=require(_0x7c40('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7c40('0x6'));var config=require(_0x7c40('0x7'));var attributes=require('./squareMessage.attributes');module[_0x7c40('0x8')]=function(_0x34b2bd,_0x211ba5){return _0x34b2bd[_0x7c40('0x9')](_0x7c40('0xa'),attributes,{'tableName':_0x7c40('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};