8007c671037dd187b77b54191ae848cf3b7484d3
[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 _0x2985=['request-promise','rimraf','../../config/environment','./squareMessage.attributes','exports','define','square_messages','lodash','util','../../config/logger','api','moment','bluebird'];(function(_0x29d6b6,_0x17b603){var _0x1bd4ef=function(_0x398dfc){while(--_0x398dfc){_0x29d6b6['push'](_0x29d6b6['shift']());}};_0x1bd4ef(++_0x17b603);}(_0x2985,0x166));var _0x5298=function(_0x1ddfd9,_0x40382a){_0x1ddfd9=_0x1ddfd9-0x0;var _0x36cc57=_0x2985[_0x1ddfd9];return _0x36cc57;};'use strict';var _=require(_0x5298('0x0'));var util=require(_0x5298('0x1'));var logger=require(_0x5298('0x2'))(_0x5298('0x3'));var moment=require(_0x5298('0x4'));var BPromise=require(_0x5298('0x5'));var rp=require(_0x5298('0x6'));var fs=require('fs');var path=require('path');var rimraf=require(_0x5298('0x7'));var config=require(_0x5298('0x8'));var attributes=require(_0x5298('0x9'));module[_0x5298('0xa')]=function(_0x4e0e1b,_0x384372){return _0x4e0e1b[_0x5298('0xb')]('SquareMessage',attributes,{'tableName':_0x5298('0xc'),'paranoid':![],'indexes':[],'timestamps':!![]});};