Built motion from commit eddce310.|2.6.12
[motion2.git] / server / api / intDeskAccount / intDeskAccount.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 _0x2c37=['path','rimraf','../../config/environment','./intDeskAccount.attributes','exports','define','DeskAccount','int_desk_accounts','lodash','util','../../config/logger','api','moment','bluebird','request-promise'];(function(_0x5cf52f,_0x2304cc){var _0x5b4b76=function(_0x3c408b){while(--_0x3c408b){_0x5cf52f['push'](_0x5cf52f['shift']());}};_0x5b4b76(++_0x2304cc);}(_0x2c37,0x152));var _0x72c3=function(_0x4b8a11,_0x4af4c6){_0x4b8a11=_0x4b8a11-0x0;var _0x3554e3=_0x2c37[_0x4b8a11];return _0x3554e3;};'use strict';var _=require(_0x72c3('0x0'));var util=require(_0x72c3('0x1'));var logger=require(_0x72c3('0x2'))(_0x72c3('0x3'));var moment=require(_0x72c3('0x4'));var BPromise=require(_0x72c3('0x5'));var rp=require(_0x72c3('0x6'));var fs=require('fs');var path=require(_0x72c3('0x7'));var rimraf=require(_0x72c3('0x8'));var config=require(_0x72c3('0x9'));var attributes=require(_0x72c3('0xa'));var integrations=require('../../components/integrations/configuration');module[_0x72c3('0xb')]=function(_0x2fa40f,_0x35ac12){return _0x2fa40f[_0x72c3('0xc')](_0x72c3('0xd'),attributes,{'tableName':_0x72c3('0xe'),'paranoid':![],'indexes':[],'timestamps':!![]});};