Built motion from commit (unavailable).|2.5.6
[motion2.git] / server / api / openchannelAccount / openchannelAccount.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 _0x4d46=['request-promise','rimraf','./openchannelAccount.attributes','exports','define','OpenchannelAccount','openchannel_accounts','util','api','moment','bluebird'];(function(_0x1301c9,_0x5c1ed0){var _0x295976=function(_0x104773){while(--_0x104773){_0x1301c9['push'](_0x1301c9['shift']());}};_0x295976(++_0x5c1ed0);}(_0x4d46,0x6a));var _0x64d4=function(_0x44925e,_0x51269a){_0x44925e=_0x44925e-0x0;var _0x21cf3a=_0x4d46[_0x44925e];return _0x21cf3a;};'use strict';var _=require('lodash');var util=require(_0x64d4('0x0'));var logger=require('../../config/logger')(_0x64d4('0x1'));var moment=require(_0x64d4('0x2'));var BPromise=require(_0x64d4('0x3'));var rp=require(_0x64d4('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x64d4('0x5'));var config=require('../../config/environment');var attributes=require(_0x64d4('0x6'));module[_0x64d4('0x7')]=function(_0x4aad2f,_0x23abb3){return _0x4aad2f[_0x64d4('0x8')](_0x64d4('0x9'),attributes,{'tableName':_0x64d4('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};