Built motion from commit c738b9ac.|2.6.25
[motion2.git] / server / api / disposition / disposition.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 _0xbc2b=['SmsAccountId','name_fax','name_openchannel','OpenchannelAccountId','lodash','util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','./disposition.attributes','exports','Disposition','name_voice','name','ListId','ChatWebsiteId','name_mail','MailAccountId','name_sms'];(function(_0x4e4fc3,_0x304b48){var _0x452806=function(_0xeb4281){while(--_0xeb4281){_0x4e4fc3['push'](_0x4e4fc3['shift']());}};_0x452806(++_0x304b48);}(_0xbc2b,0x101));var _0xbbc2=function(_0x4b8f1e,_0x404832){_0x4b8f1e=_0x4b8f1e-0x0;var _0x3df0df=_0xbc2b[_0x4b8f1e];return _0x3df0df;};'use strict';var _=require(_0xbbc2('0x0'));var util=require(_0xbbc2('0x1'));var logger=require(_0xbbc2('0x2'))(_0xbbc2('0x3'));var moment=require(_0xbbc2('0x4'));var BPromise=require('bluebird');var rp=require(_0xbbc2('0x5'));var fs=require('fs');var path=require(_0xbbc2('0x6'));var rimraf=require(_0xbbc2('0x7'));var config=require(_0xbbc2('0x8'));var attributes=require(_0xbbc2('0x9'));module[_0xbbc2('0xa')]=function(_0x561d3d,_0xf288de){return _0x561d3d['define'](_0xbbc2('0xb'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0xbbc2('0xc'),'fields':[_0xbbc2('0xd'),_0xbbc2('0xe')]},{'unique':!![],'name':'name_chat','fields':[_0xbbc2('0xd'),_0xbbc2('0xf')]},{'unique':!![],'name':_0xbbc2('0x10'),'fields':[_0xbbc2('0xd'),_0xbbc2('0x11')]},{'unique':!![],'name':_0xbbc2('0x12'),'fields':[_0xbbc2('0xd'),_0xbbc2('0x13')]},{'unique':!![],'name':_0xbbc2('0x14'),'fields':[_0xbbc2('0xd'),'FaxAccountId']},{'unique':!![],'name':_0xbbc2('0x15'),'fields':['name',_0xbbc2('0x16')]},{'unique':!![],'name':'name_whatsapp','fields':[_0xbbc2('0xd'),'WhatsappAccountId']}],'timestamps':!![]});};