Built motion from commit b5413ace.|2.6.9
[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 _0x14b8=['name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','tools_dispositions','name_voice','name','ListId','name_chat','ChatWebsiteId','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0x14b8,0x86));var _0x814b=function(_0x32dee0,_0x1fde41){_0x32dee0=_0x32dee0-0x0;var _0x41eab3=_0x14b8[_0x32dee0];return _0x41eab3;};'use strict';var _=require(_0x814b('0x0'));var util=require('util');var logger=require(_0x814b('0x1'))(_0x814b('0x2'));var moment=require(_0x814b('0x3'));var BPromise=require('bluebird');var rp=require(_0x814b('0x4'));var fs=require('fs');var path=require(_0x814b('0x5'));var rimraf=require(_0x814b('0x6'));var config=require(_0x814b('0x7'));var attributes=require('./disposition.attributes');module[_0x814b('0x8')]=function(_0x7b1c8f,_0x8df5b8){return _0x7b1c8f[_0x814b('0x9')]('Disposition',attributes,{'tableName':_0x814b('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x814b('0xb'),'fields':[_0x814b('0xc'),_0x814b('0xd')]},{'unique':!![],'name':_0x814b('0xe'),'fields':[_0x814b('0xc'),_0x814b('0xf')]},{'unique':!![],'name':_0x814b('0x10'),'fields':[_0x814b('0xc'),_0x814b('0x11')]},{'unique':!![],'name':_0x814b('0x12'),'fields':[_0x814b('0xc'),_0x814b('0x13')]},{'unique':!![],'name':_0x814b('0x14'),'fields':[_0x814b('0xc'),_0x814b('0x15')]},{'unique':!![],'name':_0x814b('0x16'),'fields':[_0x814b('0xc'),_0x814b('0x17')]},{'unique':!![],'name':_0x814b('0x18'),'fields':['name',_0x814b('0x19')]}],'timestamps':!![]});};