0370412501e16b84a6342aebe057827a3d2e05f0
[motion2.git] / server / api / openchannelApplication / openchannelApplication.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 _0x9cbf=['openchannel_applications','utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','request-promise','path','rimraf','../../config/environment','./openchannelApplication.attributes','exports','OpenchannelApplication'];(function(_0xc03c13,_0x71199){var _0xfd0efa=function(_0x5b4806){while(--_0x5b4806){_0xc03c13['push'](_0xc03c13['shift']());}};_0xfd0efa(++_0x71199);}(_0x9cbf,0x1a3));var _0xf9cb=function(_0x5a5151,_0x1d9c7f){_0x5a5151=_0x5a5151-0x0;var _0x21fd08=_0x9cbf[_0x5a5151];return _0x21fd08;};'use strict';var _=require(_0xf9cb('0x0'));var util=require(_0xf9cb('0x1'));var logger=require(_0xf9cb('0x2'))('api');var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xf9cb('0x3'));var fs=require('fs');var path=require(_0xf9cb('0x4'));var rimraf=require(_0xf9cb('0x5'));var config=require(_0xf9cb('0x6'));var attributes=require(_0xf9cb('0x7'));module[_0xf9cb('0x8')]=function(_0x3c8a96,_0x3b4ec9){return _0x3c8a96['define'](_0xf9cb('0x9'),attributes,{'tableName':_0xf9cb('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xf9cb('0xb'),'collate':_0xf9cb('0xc')});};