Built motion from commit 0415ced0.|2.6.28
[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 _0x0e7f=['../../components/integrations/configuration','exports','define','DeskAccount','int_desk_accounts','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment'];(function(_0x26e105,_0x821a88){var _0x534f19=function(_0x3cbc79){while(--_0x3cbc79){_0x26e105['push'](_0x26e105['shift']());}};_0x534f19(++_0x821a88);}(_0x0e7f,0x155));var _0xf0e7=function(_0x274d73,_0x5cdcc7){_0x274d73=_0x274d73-0x0;var _0x6c21d5=_0x0e7f[_0x274d73];return _0x6c21d5;};'use strict';var _=require(_0xf0e7('0x0'));var util=require(_0xf0e7('0x1'));var logger=require(_0xf0e7('0x2'))(_0xf0e7('0x3'));var moment=require(_0xf0e7('0x4'));var BPromise=require('bluebird');var rp=require(_0xf0e7('0x5'));var fs=require('fs');var path=require(_0xf0e7('0x6'));var rimraf=require(_0xf0e7('0x7'));var config=require(_0xf0e7('0x8'));var attributes=require('./intDeskAccount.attributes');var integrations=require(_0xf0e7('0x9'));module[_0xf0e7('0xa')]=function(_0x4a0e19,_0x17463d){return _0x4a0e19[_0xf0e7('0xb')](_0xf0e7('0xc'),attributes,{'tableName':_0xf0e7('0xd'),'paranoid':![],'indexes':[],'timestamps':!![]});};