Built motion from commit (unavailable).|2.5.23
[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 _0x3bd7=['ChatWebsiteId','name','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','../../config/logger','api','moment','request-promise','path','rimraf','./disposition.attributes','Disposition','ListId'];(function(_0x618414,_0x1a7a60){var _0x21c19a=function(_0x507b17){while(--_0x507b17){_0x618414['push'](_0x618414['shift']());}};_0x21c19a(++_0x1a7a60);}(_0x3bd7,0x199));var _0x73bd=function(_0xb66df,_0x4fb5ce){_0xb66df=_0xb66df-0x0;var _0x42a702=_0x3bd7[_0xb66df];return _0x42a702;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x73bd('0x0'))(_0x73bd('0x1'));var moment=require(_0x73bd('0x2'));var BPromise=require('bluebird');var rp=require(_0x73bd('0x3'));var fs=require('fs');var path=require(_0x73bd('0x4'));var rimraf=require(_0x73bd('0x5'));var config=require('../../config/environment');var attributes=require(_0x73bd('0x6'));module['exports']=function(_0xe20fe9,_0x1aa5e1){return _0xe20fe9['define'](_0x73bd('0x7'),attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':['name',_0x73bd('0x8')]},{'unique':!![],'name':'name_chat','fields':['name',_0x73bd('0x9')]},{'unique':!![],'name':'name_mail','fields':[_0x73bd('0xa'),_0x73bd('0xb')]},{'unique':!![],'name':_0x73bd('0xc'),'fields':[_0x73bd('0xa'),_0x73bd('0xd')]},{'unique':!![],'name':_0x73bd('0xe'),'fields':['name',_0x73bd('0xf')]},{'unique':!![],'name':_0x73bd('0x10'),'fields':[_0x73bd('0xa'),_0x73bd('0x11')]},{'unique':!![],'name':_0x73bd('0x12'),'fields':[_0x73bd('0xa'),'WhatsappAccountId']}],'timestamps':!![]});};